powerappspowerapps-canvaspowerapps-selected-items

Based on Radio button selection how to change drop choices in powerapps


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


Solution

  • Set the item of the dropdown to:

    Switch(radioButton.Selected.Value,"Employee",["emp1","emp2"],"Student",["stu1","stu2"]...)