Show dynamic VisualForce page based on a field value in Salesforce. — Salesforce Garage


In order to achieve the requirement, create a custom button and set the Behavior picklist to option ‘Execute JavaScript’ and Content Source picklist to ‘OnClick JavaScript’. Add the below lines of code in Custom button Editor Text page: Here, I am showing the custom VF page based on the values present in RecordType. if(‘{!Position__c.RecordType}’==”Developer”) { […]

via Show dynamic VisualForce page based on a field value in Salesforce. — Salesforce Garage

Advertisements