Change VF page to Lightning Style with Single Attribute. Winter 18 feature
Salesforce Winter 18 release introduced new VF page attribute to change UI look and feel from Classic to Lightning. <apex:page lightningstylesheets="True">
Redirect to Visualforce page from Custom Button using OnClick Javascript
You have to write javascipt code to redirect to VF page standard custom button. Should use window.location function to redirect to VF page. Example: {!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')} var accReq = "{!Account.Name}"; if(accReq != '') { window.location="/apex/VisualforceName?id={!Account.Id}"; } else { alert('Name is mandatory'); window.location.reload(); }
Override standard tab to hide recent item and unwanted section
You can customize the standard tab to display specific list view and hide unwanted section. You can’t customize the standard tab page using point and click. Need to use Visualforce page to accomplish this functionality. You can use apex:enhancedlist to customize
How to Display Error/Information messages in Visualforce Pages
Learn How to Show Error/Information Message in Visualforce Page Many case user want to display multiple error/warning/information message in the UI(Visualforce Page). Please find below sample code Apex Code : ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.Info, 'Please fill all manfaroty fields.')); ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.Error, 'Name is manfatory.')); ApexPages.addmessage(new ApexPages.message(ApexPages.Severity.WARNING, 'Need
Refer Object Field Label Name in Visualforce
How to Get the Label Names for Refer Object's Field in Salesforce? Many case we many need to use object field label name in the Visualforce page. We can use “$ObjectType” system class. Sample Code : <apex:outputLabel value="{!$ObjectType.Account.fields.Name.label}" />