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 / Radio button retain it...
Power Apps
Answered

Radio button retain its previous value even after Reset

(0) ShareShare
ReportReport
Posted on by 1,121

I have this simple radio button with items Yes, No. 

 

RameshMukka_0-1653385919339.png

I have below formula at OnSelect of the Submit button.

Patch(Binaries,Defaults(Binaries),{Title:Radio1.Selected.Value});UpdateContext({varResetRadio: true})

 

I have placed my context variable varResetRadio at Reset property of the radio button.

RameshMukka_1-1653386080796.png

 

Now I have placed a label on the screen to check the current value selected in radio options. I have put Radio1.Selected.Value at text property of the label.

RameshMukka_2-1653386374442.png

 

Now when I click on submit, neither the label value becomes blank nor the radio button resets. But when I take another button to reset the radio control with Reset(radio1), it resets perfectly. Am I doing something wrong in this simple action? Or is this a bug when I use a variable at Reset property of radio button?

 

Thanks in advance,

Ramesh Mukka

 

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    When using the reset property, the value needs to be set to false manually, then to true, then to false again. I would recommend just to use the reset function instead as you have done, and replace your UpdateContext with reset instead:

    Patch(
     Binaries,Defaults(Binaries),
     {Title:Radio1.Selected.Value});
    Reset(Radio1)

     

  • rameshmukka Profile Picture
    1,121 on at

    @iAm_ManCat Thank you for taking some time. My actual problem was on my app where am building with close to 100 input controls. So idea was to reset them at Form Submit so I was using this Reset property with variable instead using Reset() function for all those 100+ controls. How would you want me to do in this case?

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Are all of your controls in the form? If Yes, then use 

    ResetForm(FormName); NewForm(Formname)

    EditForm, NewForm, SubmitForm, ResetForm, and ViewForm functions in Power Apps - Power Apps | Microsoft Docs

  • rameshmukka Profile Picture
    1,121 on at

    @iAm_ManCat 

    No, I am not using a form control. So I went for Reset property using variable as that was easy. And used below formula as you suggested. It worked. Thanks a lot.

     

     

     Set(
     varResetCtrls,
     false
     );
     Set(
     varResetCtrls,
     true
     );
     Set(
     varResetCtrls,
     false
     );

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard