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

Announcements

News and Announcements icon
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:
  • 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,482 Most Valuable Professional on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
Harshit Chaubisa Profile Picture

Harshit Chaubisa 4

Last 30 days Overall leaderboard