web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset and deselect rad...
Power Apps
Answered

Reset and deselect radio buttons

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to be able to reset my radio button with another button and be able to deselect each button. Just using the command doesn't reset because in my items I have RadioItems.Value This in my onchange for the button-  Patch(GUAT,ThisItem,{Radio:Radio4.SelectedText.Value}); This is the default for the radio buttons - ThisItem.Radio. When i try to use reset nothing happens. I want to be able to mass deselect with a button and individually uncheck radio buttons. Is this possible?

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    You should be able to use a variable in the Reset property of the Radio buttons. If you set that value to "true", that will reset the control. You will then need to Set that variable back to false - you can just have both Set commands on the button - 

    Set(var_Reset,true);Set(var_Reset,false)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I put both of those in the reset property and it says behavior function in a non-behavior property. @BrianS 

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    In the Reset property of the radio control you need to put the variable (var_Reset in the previous post). Then put the 2 Set commands in the OnSelect of a Button. The button will then reset all the controls with that variable in the Reset property.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I put the two commands on the button and set the reset property on the radio button and nothing happened still @BrianS . But the more important part is being able to deselect individual buttons can this be done?

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I do not know of a way to deselect individual buttons. Check that this is what you have: 

    PwrApps_reset.jpg

    If you want to disable individual items you may need to use a different control

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous @BrianS 
    I don't mean to crash the messages, but the Default property on the Radio control is ThisItem.Radio.  If that has a value, when you Reset the control, it will reset to that value (which is why you see nothing happening).

    @BrianS solution is what you can use for Resetting controls in general, but Reset means "Reset to Default".  If you have a default value, that is what you will reset to.  

    You need to add additional logic to change the Default property if you wish for it to go to nothing.

     

    @Anonymous can you explain more about what you mean by "deselect individual buttons"?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, for instance if I have a button in my gallery and there are 10 items and I accidentally select 3 when i only wanted to select to is there a way I can click on the radio button again and deselect just one. So the other two would remain selected. It is the same functionality as unchecking a check box, I want to be able to do the same thing just with a radio button. @RandyHayes 

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Radio buttons only allow for a single selection of multiple choices - are you sure you are referring to the correct control?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes..I know there is a way to unselect a selected radio button because I have done it, but it was just giving me errors. Capture2.PNG

    For instance look at 16, I have selected issues, ok so say I change my mind and want to leave that item blank. I will click issues and it will remove the selection. I have achieved this functionality so I know it can work, but I just couldn't get it to work perfectly. @BrianS 

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I couldn't find a way to un-select only the value selected, but this will reset the control if it is selected a second time.

    In the OnSelect property use this formula: Set(var_Checked,true)

    Then in the OnChange use this:

    If(var_Checked,Reset(Radio2));Set(var_Checked,!var_Checked)
    If you have a blank in the Default property it will clear the control when it is re-selected.
    Perhaps if you set the Default to a variable and changed the variable value whenever the control was selected, but once you get beyond 3 radio selections the If would get a little complicated.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard