Is there a way to deselect radio buttons? I don't see anything about this function.
Solved! Go to Solution.
Hi @powerapps890 ,
Please set the radio's Default:
If(var,"",
LookUp(GUATResponses, Title=vUserMail && GUATListID=ThisItem.ID, RadioValue)
)
Best regards,
Hi @powerapps890,
You can have a reload icon in your app (like below picture).
Set the OnSelect property of the icon to Reset(RadioButton) 🙂
This isn't working for me because it saves the selections. This is what I have in my onvisisble for the screen. This is my radiodefault - ThisItem.Radio. This is in my onchange - Patch(GUAT,ThisItem,{Radio:Radio4.SelectedText.Value}). How can I work around this @Anonymous
Hi @powerapps890 ,
Do you want to make one radio select nothing?
If so, you need to change the radio's default when clicking a button.
I've made a similar test for your reference:
1)insert a button, set its OnSelect:
Set(var,true);Reset(Radio1)
2)set the radio's Default:
If(var,"",ThisItem.Radio)
Then by default, the radio will display the field value. If you click that button, the selection of the radio will be deselected.
Best regards,
I tried what you said and it wouldn't save the selections of some of the radio buttons sometimes they just dissapeared. @v-yutliu-msft
Hi @powerapps890 ,
Could you describe more clearly about your demands?
I just know that you want to deselect the selection of the radio. What do you mean about " individually deselect" and "save the selections of some of the radio"?
Do you have many radios?
I suggest you describe with screen shooot.
Best regards,
No, I have one radio button. I want to know if its possible to uncheck a radio button. I meant I want a button that can uncheck all of them but also for instance if I clicked works for create in OSC I want to be able to unselect that and make it blank again. I want to do it at an individual level and for the entire radio button called radio4 @v-yutliu-msft
Hi @powerapps890 ,
Do you want to uncheck all the radios in one gallery by clicking a button outside the gallery?
If so, I've made similar test for your reference:
1)insert a button outside the gallery
insert a gallery, insert a radio inside the gallery
2)set the button's OnSelect:
Set(var,true)
3)set the radio's Default:
If(var,"",ThisItem.Radio)
Then in the beginning, the radios display the field's value by default. If you click that button, all the radios will be deselected.
However, this solution could only reset the radios for one time because outside button could not reset controls inside the gallery.
If you want to reset these radios for twice, you need to set one control inside the gallery.
Set that control's OnSelect:
Reset(Radio1)
Then every time you click that control, the radio in that line will be deselected.
Best regards,
ThisItem.Radio is in my default and when I remove that and use what you have the button works but in order for the radio button selection to stick you have to click it twice @v-yutliu-msft
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |