Hello
How do i give each radio button a different OnSelect function. It seems I can only change the OnSelect function of the "Whole set" of radio buttons?
I am a beginner
Thank You
Lorcan
Solved! Go to Solution.
You can use an If or Switch statement fire off different formulas based on what is selected. In the example below I am setting a variable with different values based on what is being selected.
Radio Buttons > OnSelect
If(Radio1.Selected.Value = "1", Set(gvTestRadio, "One"), If(Radio1.Selected.Value = "2", Set(gvTestRadio, "Two")))
Hi @Anonymous,
Like @Jeff_Thorpe suggested, Radio control is recognized as one control for PowerApps. Thus you cannot define each part of Radio in the formula. But you can workaround this by identifying which value is selected in Radio control. Work with IF function, using something like:
If(Radio1.Selected.Value="1", .... , ....)
For more information about IF function, please refer to:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if
Regards,
Mona
You can use an If or Switch statement fire off different formulas based on what is selected. In the example below I am setting a variable with different values based on what is being selected.
Radio Buttons > OnSelect
If(Radio1.Selected.Value = "1", Set(gvTestRadio, "One"), If(Radio1.Selected.Value = "2", Set(gvTestRadio, "Two")))
Hi @Anonymous,
Like @Jeff_Thorpe suggested, Radio control is recognized as one control for PowerApps. Thus you cannot define each part of Radio in the formula. But you can workaround this by identifying which value is selected in Radio control. Work with IF function, using something like:
If(Radio1.Selected.Value="1", .... , ....)
For more information about IF function, please refer to:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if
Regards,
Mona
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
52 | |
51 | |
35 | |
33 |
User | Count |
---|---|
265 | |
97 | |
84 | |
77 | |
74 |