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

setting Field dependency in v.f page

I have two picklists one is country and other is states

based on country value we selected ,the corresponding states values should be displayed

this can be done by using standard controller but here i m using schema object to get picklit values from object

and all the values of states are displayed irrespective of the country value we selected




what can i do ?


Thanks in advance.....


In winter 11 salesforce has provided a new feature related to the dependent picklist. You can create two dependent picklist fields and maintain a controlling field and set field dependency respectively by picklist values in org.



Thanks for u r Reply

 Plz tell me how can I do that?

Can u send me  a small Example.?