You need to sign in to do that
Don't have an account?
ani123
onchange picklist section visibilty
hi i have a vf page picklist "countries".i have each section for countries on change of my selection in picklist i want the section visibilty for selected country.
Kindly give me solution urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Is this a custom picklist (i.e. an apex:selectlist) or an apex:inputfield?
apex:selectlist
The onchange event should give you what you need. Here's an example from one of my dev orgs:
In this case, the selectlist is a list of account id/name, plus a NEW option. When the user changes the selected account, the following javascript is executed:
addContact and removeContact are actionfunctions . The addContact action method sets up a list of contacts available on an existing account so that the user can select one of those.
Obviously this isn't a straightforward cut and paste, but hopefully gets you started.
Excellent link
http://www.srinusfdc.com/2012/08/based-on-picklist-selection-how-to.html