Solved! Go to Solution.
Try this:
- create two variables (var_radio1, var_radio2)
- set default value of radio button with these variables
- use 'OnSelect' function in Radio1 and paste:
Set(var_radio1,Self.Selected.Value);Set(var_radio2,If(Self.Selected.Value = "Yes","No","Yes"))
- use 'OnSelect' function in Radio2 and paste:
Set(var_radio2,Self.Selected.Value);Set(var_radio1,If(Self.Selected.Value = "Yes","No","Yes"))
It works on my PA
try this
Radio2 Default =
If(Radio1.Selected.Value = Text("Yes"),"No","Yes")
it's working in my powerapp
And what about radio1 default?
Let me check
Try this:
- create two variables (var_radio1, var_radio2)
- set default value of radio button with these variables
- use 'OnSelect' function in Radio1 and paste:
Set(var_radio1,Self.Selected.Value);Set(var_radio2,If(Self.Selected.Value = "Yes","No","Yes"))
- use 'OnSelect' function in Radio2 and paste:
Set(var_radio2,Self.Selected.Value);Set(var_radio1,If(Self.Selected.Value = "Yes","No","Yes"))
It works on my PA
Works really nice, but those radio are from a form, in this way will I be able to submit those answers and retrieve them whenver I reopen that exact form, I basically also want to have the default as ThisItem.radio1 for example,for when reopening the submitted form.
Edit: It works!