web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Show/hide option set v...
Power Pages
Unanswered

Show/hide option set values based on other option set value using javasript

(0) ShareShare
ReportReport
Posted on by

I've a form on which there are 2 option sets.

1) option set values- critical, not critical

2) option set values - positive, trying, negative, fail.

Based on 1st option set I want to show/hide options of 2nd option set. How can I achieve this using javascript ?

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @NidhiAgrawal , 

     

     Please take a look at the following link which will give you some idea on how to create cascading dropdown. 

     

    https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_cascading_dropdown 

     

    You can compute your logic similar to this by getting the element id of the control ( using Inspect) and build your dropdown. Once done you can add it in in web page - > javascript section or Entity/web form custom javascript section. 

     

    Hope it helps. 

    ------------

    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.

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    hi @NidhiAgrawal please take a look at the following: https://powerusers.microsoft.com/t5/Power-Apps-Portals/Hide-Show-options-in-Option-Set-fields/m-p/618890

     

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard