You need to sign in to do that
Don't have an account?
Shohrat Muhamov
Create field dependency in visualforce page
Is it possible to create field dependency in Visualforce page for two unrelated picklists from different objects without hardcoding in custom controller? (with javascript or any other alternative)
1.You can use Custom setting/ Custom Metadata Type to store your dependent picklist structure.
2.Create an Apex class and create Map<String, List<String>> to hold the master-options record.
3.Use this map in populating the picklist values onChange of the master picklist using apex:actionsupport
Do post here if you have any further questions.
Happy Coding!
I am trying to solve this problem without involving Apex. Is there any way of doing it on Visualforce page side with javascript?
Thank you.