1

I have a radio button and a dropdown where options of radio button: [Employee, Student]. How to change the values accordingly based on radio button selection. Onclick of Employee the drop down choices should be as[emp1,emp2,emp2] onclick of student the drop down choices should be as[stu1,stu2,stu2]

enter image description here

user1877936
  • 351
  • 3
  • 7
  • 22

1 Answers1

3

Set the item of the dropdown to:

Switch(radioButton.Selected.Value,"Employee",["emp1","emp2"],"Student",["stu1","stu2"]...)
marianr99
  • 146
  • 5
  • Have one more question, if we want to dynamically popuplate from API data in drop down , what approch i have to follow. – user1877936 Jul 21 '21 at 13:25