function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CvrKCvrK 

How to call a picklist field based on the selected value of another picklist field?

Hi,
How to call a picklist field based on the selected value of another picklist field?
For Ex: if i have a Picklist field Named Request__c with values Auditing and Consulting
When I select Auditing value,another picklist field named US__c should be displayed, similarly if Consulting__c is selected,UK__c should be displayed.
please provide the sample code if possible.

Thanks
Cvrk
 
Swayam@SalesforceGuySwayam@SalesforceGuy
Hi,
You can Use Depended Picklist, if still it does not meet your criteria, you can refer below link for creating it via Apex.

http://blog.deadlypenguin.com/blog/2012/07/09/dynamic-dependent-picklists-in-salesforce/


Hope this helps,

--
Thanks,
Swayam
@salesforceguy
Maharajan CMaharajan C
Hi CvrK,
There is a no need to create a Apex code to Field dependency you can simply done this by using the Configuration.
Can you please check out below Link-:http://www.salesforcetutorial.com/field-dependency-in-salesforce/
If you want Code means use this Link-:http://www.infallibletechie.com/2012/10/dependent-picklist-using-apex-in.html

Thanks
Raj.
(Sweet Potato Tec)