Reputation: 363
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]
Upvotes: 1
Views: 1720
Reputation: 146
Set the item of the dropdown to:
Switch(radioButton.Selected.Value,"Employee",["emp1","emp2"],"Student",["stu1","stu2"]...)
Upvotes: 3