Hi. I am going nuts trying to get this working. I have a Radio button control. When the user selects a value I want the Radio to disable so that their first choice is the only choice they can make. My Radio OnSelect code looks like this:
Q1_Radio.DisplayMode.Disabled;
If(Q1_Radio.Selected.Value = "Correct Answer",Set(Score, 100),Set(Score, 0))
The score works fine. It just doesn't disable the radio buttons. What am I doing wrong?
Solved! Go to Solution.
hi @rwittels instead of Q1_Radio... Assign the status to a variable and set the radio display mode to the variable
UpdateContext({rbMode:DisplayMode.Disabled}) and set the display mode of the radio button to rbMode
hope it helps
hi @rwittels instead of Q1_Radio... Assign the status to a variable and set the radio display mode to the variable
UpdateContext({rbMode:DisplayMode.Disabled}) and set the display mode of the radio button to rbMode
hope it helps
I removed
Q1_Radio.DisplayMode.Disabled;
from the OnSelect Property and placed this code in the DisplayMode Property and it works but now my score doesn't work:
If(!IsBlank(Q1_Radio.Selected.Value),DisplayMode.Disabled,DisplayMode.Edit)
Any idea why my OnSelect doesn't work now? Is it disabling before getting the score?
Thank you. Works perfectly.
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 |
---|---|
203 | |
45 | |
45 | |
45 | |
39 |
User | Count |
---|---|
279 | |
81 | |
79 | |
79 | |
69 |