You need to sign in to do that
Don't have an account?
Create Country State Dependent Picklist In apex code
Hello, I need to create a country state dependent picklist in my visualforce page.
I want to Default State and Country/Territory Picklists. I am able to get values of both country and state as suggested here.
But they Are not dependent Enough.
How to make them Dependent.? or should i my own object.
I want to Default State and Country/Territory Picklists. I am able to get values of both country and state as suggested here.
But they Are not dependent Enough.
How to make them Dependent.? or should i my own object.
how ever you have to use additonal JS as the value stored will be name of countries and states. not the codes.
All Answers
https://help.salesforce.com/apex/HTViewSolution?id=000212327&language=en_US
how ever you have to use additonal JS as the value stored will be name of countries and states. not the codes.
Do you have more information this?
Hello everyone,
I know it's quite an old question, but I found a solution, so new people can know :)
More details you can find here: https://beyondthecloud.dev/blog/country-state-dependent-picklist-in-apex
Code (ready to use):