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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Radio button retain it...
Power Apps
Unanswered

Radio button retain its previous value even after Reset

(0) ShareShare
ReportReport
Posted on by 1,115

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,228 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,115 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,228 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,115 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard