Skip to main content
Community site session details

Community site session details

Session Id : sn+84zZPB/8bP6CLGhQ2ZO
Power Apps - Building Power Apps
Unanswered

Deselect rado button and reselect button again

Like (0) ShareShare
ReportReport
Posted on 15 Aug 2021 20:19:26 by 79

Hi all, 

 

I have a Sharepoint list with a choice field. After I´ve managed it, to show a radio button instead a dropdown I have now the problem, that there is now standard behaviour to unselect the buttons. 
I found the workaround below, which works fine ,but  it is not possible to select e.g. "No" and reselect it immediately again. You have to select "Yes" first and then you can select "No" again:

Radio button OnChange: Set(currentValue, Radio1.Selected.Value)
Radio button OnSelect: If(currentValue = Radio1.Selected.Value, Reset(Radio1), false)

Does anybody have a solution for this?

Categories:
  • WarrenBelz Profile Picture
    149,110 Most Valuable Professional on 15 Aug 2021 at 21:15:45
    Re: Deselect rado button and reselect button again

    @xxYYxx ,

    You have to change something on a radio button (or any control for that matter) to trigger an OnChange event (which is what I suspect you want to do here). You could put a button (a small one) in the card with Reset(RadioName) if the Default was No and then put whatever code you wanted on that.

    Of the code you posted, the first one is probably a circular reference and the last would never allow a Yes value to be registered.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473