Welcome to my blog

I have been working with Salesforce for quite a while, so don’t hesitate to contact me if you have any questions or want some advice.

s f

Follow Us


 . Visualforce

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(); }

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