Populate Dropdown based on a Dropdown choice

  • 10 August 2021
  • 1 reply
  • 165 views

Hello, I'm trying to see if there is a better way then rules to accomplish my goal. 

 

I have 2 dropdowns, if RHQ is selected in the first then I need the second to display certain options, If 212 is selected in the first then I need a different set of options to appear in the second. is there any way to do this with JavaScript over making a bunch of copies of the second dropdown and hiding them with rules?

 

Thank you for your time.  

 

19129i9E94296CE79F3485.png

 


1 reply

Hi,


 


I think it can be achieved in the easiest way by creating a separate list containing all the values you need in the second dropdown coupled with the related value from the first dropdown like:



 


After doing this you can add the "List Lookup" Control to your form point it to this new list and set up a filtering:



In the end, it should look like this with only one dropdown and now rules:




 


I hope this helps 🙂


 


 

Reply