You need to sign in to do that
Don't have an account?
Ashim Chapagain
show or hide fields based on picklist value
We have Picklist fields in opporunity object named "AP Solution" and "DMS Solutions" both of them have the same picklist value such as "Implemented", "Qualified out", "Qualified" and "Not sure". As soon as implemented is chosen a new field named "date implemented" must appear and as soon as a qulified is chosen "demo" checkbox should appear. There is any way to do it using visual force.
Greetings to you!
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
Or you can use the below code also:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Please refer to the below link from salesforce stack exchange exactly with similar issue.Kindly modify the code as per your requirement which helps you surpass the above challenge.
http://salesforce.stackexchange.com/questions/101208/how-to-hide-show-the-fields-based-on-picklist-value
For more information check here:
https://success.salesforce.com/ideaView?id=08730000000IaIq
https://developer.salesforce.com/forums/?id=906F000000098qrIAA
Thank You,
www.nubeselite.com
Development | Training | Consulting
Please mark this as solution if your problem is solved.