Announcements
Hi All,
I have a two option set fields on a web form step.
Based on selection of first option set I need to hide/show options in the second option set field.
How can i achieve this bu JQuey (Hide/Show options in Option Set field)
Thank you.
Hi, to hide an option you can use the following via JQuery:
$("#<attribute name> option[value='< option set value>']").hide();
for example:
$("#new_myoption option[value='123123']").hide();------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @SunilR
Can you add below code in Web Page/Web Form javascript section:
$(document).ready(function(){ $("#new_firstoptionsetfieldlogicalname").change(function () { // Get value of your trigger field let currentVal = $("#new_firstoptionsetfieldlogicalname option:selected").val(); //do some validation if(currentVal == "459490001") { $("#new_secondoptionsetfield option[value='123123']").hide(); } else { $("#new_secondoptionsetfield option[value='123123']").show(); } }); });
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 59
11manish 53
Vish WR 29