Disabling Picklist field by selecting radio button.
Hi,
I have Created a Radio Button with options 'YES' & 'NO' . and created a Multi select picklist field below.
Now my requirement is 1. In Radio button, If YES is selected then picklist values on below has to be enable and give choice to select from the multi picklist 2. In radio Button, If NO is selected then Picklist values has to be disable.
Can any one help me to do this functionality. If so it would be helpfull to me.
If the Yes/No option is a Picklist field type, you could use the built-in dependent picklists functionality. However, I'm not sure it would work if you're using radio buttons rather than the inputField control (which would appear as a dropdown list rather than a radio button)
If it's an option to make the Yes/No field a dropdown list rather than a radio button, then dependent picklist functionality should work without any custom coding.
Hi,
Try this code,
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
chamil's blog
All Answers
If the Yes/No option is a Picklist field type, you could use the built-in dependent picklists functionality. However, I'm not sure it would work if you're using radio buttons rather than the inputField control (which would appear as a dropdown list rather than a radio button)
If it's an option to make the Yes/No field a dropdown list rather than a radio button, then dependent picklist functionality should work without any custom coding.
Hi,
Try this code,
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
chamil's blog
Thank you.....Chamil
The code is working......awesome..
Suresh Goud
I have a same kind of requirement for checkbox.
If checkbox is checked, I have to hide another field. If checkbox is unchecked, I have to show another picklist field,
against if the picklist field value selected is "other" , I have to show one more field. Can you please help me in getting this.