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 / Reset function not wor...
Power Apps
Answered

Reset function not working in EditForm

(0) ShareShare
ReportReport
Posted on by 5

I am creating a custom form for a SharePoint list using PowerApps. In a test screen, with no form, I can add a text input field (TextInput1) and a button with an OnSelect property of Reset(TextInput1). This works as expected: after typing text in the field, clicking the button returns the field to its default value ("Text Input").

 

However, when I use those exact same controls on a screen with an EditForm, clicking the button does nothing. The controls are both within the form (as I read is a requirement), and even on the same card. In the image below, the area with the blue fill is the form. The button in that form is identical to the button in the white area (outside the form) except that it references the text box within the form.

 

2022-01-28 17_32_58-LSC IT Tools - Desktop Viewer.png

 

I have a background in software development and some experience with InfoPath and various other form-building tools, but am relatively new to PowerApps. I've tried just about everything I can find, including other reset/clear methods like setting context variables. It really seems to be related to the controls being in a form as opposed to just on a screen. Any help would be greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @adixon 

    There is no requirement that controls be in a form if you have a form.

     

    Put your form in New mode for the DefaultMode property and you should see the issue you are having go away.

    If your form is to be in Edit mode, then you need to make sure you are supplying a valid record for the Item property of the form, or you will have what you are seeing.

     

    Welcome to PowerApps - no software development needed as PowerApps is a no-code platform.  The more "development-like" you think, the harder and more challenging PowerApps will be.  So ignore doing all the things you did before and think more like Excel, because PowerApps is modeled around Excel.

     

    I hope this is helpful for you.

  • adixon Profile Picture
    5 on at

    That was the problem, thank you! When creating the form, it only gave me the option of "Edit" or "View", so I wasn't aware of the New mode. It makes sense that it would need a record bound to the form for it to work in Edit mode.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard