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 / How to reset the radio...
Power Apps
Suggested Answer

How to reset the radiocanvas1 in gallery

(1) ShareShare
ReportReport
Posted on by 74
Hi,
 
May I know how to compose a code with my Powerapps. 
 
I have a gallery with radiocanvas1. I want to create a trigger when I click the submit button the radiocanvas1 value will reset. 
 
 
Please see the function of Submit Button. 
 
 
The goal is when I click the submit button the value of RadioCanvas1 will back to default value. 
 
 
Thank you
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,114 Super User 2025 Season 2 on at

    Hi,

    To achieve your goal of resetting the value of RadioCanvas1 when you click the submit button, here's what you need to do:

    1. Submit Button:
      Add the following code to your Submit Button's OnSelect property:

      Set(varReset, true);
      Set(varReset, false);

      This will trigger the reset.

    2. Gallery:
      In your gallery, you need to add a Toggle control (use the classic look, as the modern toggle won't work for this).

    3. Default Property of the Toggle:
      Set the Default property of the Toggle to the variable varReset we created in the Submit Button:

      varReset
    4. OnChange Property of the Toggle:
      In the OnChange property of the Toggle, add the following code to reset the RadioCanvas1:

      Reset(RadioGroupCanvas2);
    5. Make the Toggle Invisible:
      Once configured, you can set the Toggle's Visible property to false so it won't be shown to the user.

    If this solution helped you, please consider accepting it as the solution and giving it a like to support each other and help others find the answer!

    Thanks! 

  • Suggested answer
    scalca Profile Picture
    243 Moderator on at
    you have to define the DefaultSelectedItems property in case you are using the modern radio button control
    or the Default property in case you are using the classic one
     
     
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Instead of Reset(GCGIntranetQuizGal), you can add the following at the end of your code and it will work to reset your Radio buttons to default values. 
    Refresh(DataSource)
    Hope it helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • CA1105 Profile Picture
    545 Super User 2025 Season 2 on at
    Did you try resetting the gallery first?
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi daywalker_567,
     
    Instead of Reset(GCGIntranetQuizGal) you can use the following and it should be able to reset your Radio buttons control to default values.
    Reset(DataSource)
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard