Hello Powerapper,
I want to change the value of a radio button depends of the value of a global variable that was already set.
example:
Radio1:
If(Radio1.Selected.Value="Yes"; Set(check1;"Yes");Radio1.Selected.Value="No"; Set(check1;"No");" ");;
Radio2:
If(check1="Yes"; Set(Radio2.selected.value = "Yes")
If(check1="No"; Set(Radio2.selected.value = "No")
If check1 has no value, the RadioButton should be unchecked.
But it does not work like this. Is there a solution for this? I could not find anything in the forum.
Small information:
It must be configured via the global variable, because after the operation of radio 1 this value is cached and retrieved later
Thanks in advance
Hi @Tony_47127 ,
Looking at the logic - assuming Radio1 and Radio2 have similar options ("Yes" and "No") - can't you just set Radio2 to be the same as Radio1?
i.e. Radio2 Default: property
Radio1.Selected.Value
?
Anyway, if there's a reason you need to use the variable, then the logic is similar but you probably want to set the variable using the OnChange: property of Radio1, and if you plan to use the logic in the same way you've done in your post then it can just be this;
Set(Check1, Self.Selected.Value)
Then your Radio2 Default: property can be
Check1
This does require that Radio2 does have the same options as Radio1 though....still, if you don't need to use the variable and can make Radio2 = Radio1 then rather do that and keep things simple.
Hope this helps,
RT
Thank you for your suggested solution.
I have worked with the methodology but unfortunately I have not described my problem well. Therefore it did not work completely
Here is a new attempt to describe my whole problem: 🙂
We need help to create an app with saving functions.
Example:
The OnSelect properties of the radio button 1 is
If(Radio1.Selected.Value="yes";Set(check1; "yes");Radio1.Selected.Value="no";Set(check1; "no");" ")
The Default properties of the Radio buttons 1 is
Switch(Buffer;
1;If(LookUp(Data1;Titel="Index").available="Yes"||"No";true;false);
Button to Collect the Data:
ClearCollect(Data1;{Titel:"Index"; available:check1;condition:DP1J.Selected.Value}
I would be glad if you could help me with this problem.
Greetings
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 |
---|---|
208 | |
47 | |
43 | |
41 | |
36 |
User | Count |
---|---|
290 | |
84 | |
81 | |
79 | |
77 |