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 Apps
Unanswered

Clear Radio Button

(2) ShareShare
ReportReport
Posted on by 1,265

I have (30) Radio Button controls with the same quantity of related text labels in a form.  If a user inadvertently selects a radio button (but does not have text in the related field), I was trying to reset the radio buttons with form submittal.  Following is a test I was trying on a single radio button.

If(
    IsBlank(
        DataCardValue11.Text,
        Reset(Radio1_3),)
    );
    SubmitForm(frmSODataEntry)
)
A couple of questions...
1.  Initially I have not been able to get the format correct.  If text field is empty, reset radio button else do nothing.  I continue to receive an "Invalid Number of Arguments".  Is that related to my "do nothing"?
2.  Is this the efficient way to accomplish or should I use different logic?
Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @RJF61 

     

    try this please:

    If(
     IsBlank(DataCardValue11.Text),
     Reset(Radio1_3);
     SubmitForm(frmSODataEntry),
     SubmitForm(frmSODataEntry)
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • RJF61 Profile Picture
    1,265 on at

    Hi @mmbr1606 Thanks for the response.  I tried your suggestion and then received...

    "The reset function can only be used with a resettable control.  Controls within a Form or Gallery control can only be reset from within the same form or gallery template."  

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    Just a follow up question, resetting the whole Form is not an option right?

  • RJF61 Profile Picture
    1,265 on at

    @mmbr1606 No resetting the whole form is not wanted.  Essentially I'm trying to address errors made by users that accidently select a Radio Button.

     

    An error scenario would include entry of text and the related radio button.  Then the user decides to deleted the text but cannot clear the button. 

  • jdanney701 Profile Picture
    8 on at
    did you ever fix this issue? im trying to do something similar, only i have a form with 8 radio buttons. i want to reset all the radio buttons and submit form. ive also tried
     
    ResetForm(Myform);
    SubmitForm(Myform)
     
    but this wont reset the radio buttons either. It just displays what is saved in the sharepoint list
  • DannyBarberUK Profile Picture
    3 on at
    Is a radio button the best option for the form?
    Is it possible to add a N/A button.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard