Salesforce Visualforce Page

Salesforce

ApexPages.Severity supported values

Confirm/Success:  ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Confirm,'Sample Success Message')); Warning: ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Warning,'Sample Warning Message'));  Informational: ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Info,'Sample Informational Message')); Error: ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error,'Sample Error Message'));

Salesforce

How to get contact’s State, City, Country fields in Visualforce page?

Other Address Fields: OtherStreet OtherPostalCode OtherCity OtherCountry OtherState Mailing Address Fields: MailingStreet MailingCity MailingCountry MailingState MailingPostalCode Sample Code: Visualforce page: <apex:page controller="Sample" sidebar="false"><apex:form >    <apex:pageblock mode="edit">        <apex:pageblockSection title="Contact Information">            <apex:inputField ....

Salesforce

Creating table in Visualfore page

Sample Code: Visualforce page: <apex:page sidebar="false" ><apex:form ><apex:panelGrid columns="2" width="100%" cellpadding="5" cellspacing="5" >    <apex:outputtext value="Name"/>    <apex:inputtext />    <apex:outputtext value="Age"/>    <apex:inputtext />    <apex:outputtext value="Total Experience"/>    <apex:inputtext />    <apex:outputtext value="Skill"/>    <apex:inputtext /> ....