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 / Form Reset on button -...
Power Apps
Answered

Form Reset on button - can't save after, because required fields

(1) ShareShare
ReportReport
Posted on by 33

Hey, 

I have created a PowerApps custom form for a SharePoint list.

 

I have one screen, which has a link to a second screen ("NewClient") which allows to create a new item in a other SharePoint list. The second screen contains two Input fields, a save button and a cancel button. After Save and Cancel the user is navigated back to screen one. 

My problem is, that when I opened the second screen, click on cancel and got navigated back, I can't save the form, because screen two contains 2 empty required fields. 

PowerApps2.png

PowerApps.png

 

So, how can I reset the form/the datacards that if I open screen two and cancel it, I still can save my screen one?

Categories:
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    If I understand correctly, the second screen would be providing the info that is missing on the first screen. If the user does not provide necessary information, you don't want the form saved. If they cancel the creation of a new client, they need to provide a current client for the first form - right? Then they can save the form.

    If this is incorrect, please provide additional info so we can help.

  • wit4r7 Profile Picture
    33 on at

    Not exactly.

     

    I have a drop down on screen one, which is a lookup. If the necessary client is not there, the user has the possibility to go to screen two via a link and create a Client there. If he creates this customer on screen two and saves it there, he will automatically return to screen one and can also save the form.

     

    However, if the User inadvertently clicks on the link, or finds that the Client already exists when creating the form, he has the option of clicking on Cancel and selecting an existing Client on screen one. Screen two was therefore only called up by mistake.

    As soon as screen two is called up, screen one can no longer be saved. This should not happen. As long as all mandatory fields on screen one are filled in, saving should be possible, independent of screen two.

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @wit4r7 

    Are you still having problems with this topic or have you resolved it?

  • Verified answer
    wit4r7 Profile Picture
    33 on at

    I solved it. 

     

    I'm using the "Resetform()" right now. Which I also did in the first place, but I was missing two things. First, I separated the formulas with a ; instead of combining them with a & and the second, I missed to set a variable in my App, which was necessary. 

     

    So typical case for "Layer 8". 

     

    Cheers, 

    wit4r7

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard