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 / Need help with resetti...
Power Apps
Unanswered

Need help with resetting form except 1 field

(0) ShareShare
ReportReport
Posted on by 427

Hello all,

 

I have a Power App connected to my Sharepoint Document Library. It consists of 2 screens. One screen consists of the main column properties (FormScreen1) and the second screen is the generation of the Document Number (column) named CreateDocumentNumber. 

DJanssen_0-1702889314120.png

FormScreen1:

DJanssen_1-1702889352568.png

CreateDocumentNumber:

DJanssen_2-1702889376404.png

The CreateDocumentNumber screen is connected to a secret Sharepoint List that I need to keep track of which numbers exist. The screen essentially generates a Document Number based on the user's input. This is saved to a LastSubmittedCode variable and is displayed in the Formscreen1. I have designed it that the Document Number can only be generated once, meaning that once an user has pressed on the V of the CreateDocumentNumber screen the value of Document Number will be set and the button becomes inactive.

 

What I need to do is the following: I found out that if an user hits cancel upon only filling in the Document Number but not the rest and then re-opens the Properties screen that the Document Number property is now empty (which makes sense as the value is only saved into the Sharepoint column once the user completes the whole proces). Therefore the user has to generate the Document Number again, but this will result in 'duplicate' numbers as the user has previously generated a number before and that number was saved to the secret Sharepoint List that keeps track of all the existing numbers. 

 

What I've tried:

In my SharepointIntegration on the OnCancel I tried resetting every field except the Document Number:

DJanssen_3-1702889749769.png

This seemed to work on first try, but when uploading a new document and going to the FormScreen1 properties of the new document I saw that the Document Number field did not reset for new documents:

DJanssen_4-1702889806443.png

My OnNew property remains unchanged:

DJanssen_5-1702889835994.png


Update: I tried this as well on the OnNew property of the SharepointIntegration:

 

NewForm(SharePointForm1);
If(IsBlank(LastSubmittedCode), Reset(DataCardValue5));

 

I get this erorr and sadly the behaviour is still the same:

DJanssen_0-1702890449019.png

If it might be helpful this is inside the Default field of the Document Number text input:

DJanssen_0-1702890543138.png

 

 

If somebody can be of any help I'd greatly appreciate it as I'm sadly still pretty new to Power Apps and the only one building the product. 

 

Best wishes, Donna

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard