cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TWolsten
Helper II
Helper II

Stop reset of 'New Form' on SubmitForm?

Hi all,

 

I have looked at similar threads but nothing is hitting the outcome I am wanting.

 

Basically I am trying to submit a New Form and then once it has submitted the form it does not reset the values to blank and instead if I hit submit again it would submit the same information again, giving the user the ability to tweak the 2nd, 3rd, 4th and 5th entries without having to enter all the values again.

 

Is this possible?

 

Thanks in advance!

1 REPLY 1
Drrickryp
Super User II
Super User II

Hi @TWolsten,

For the fields that you wanted to keep the same, you would use the default property of the control in the card.  So if the form was Form1 and it had a City card, you would change the default in the control inside the card from Parent.Default to Form1.LastSubmit.City.  However, you will still want to have the form work correctly for Edit mode so an If() function is needed. The Default property of the control should be If(Form1.Mode = 1, Form1.LastSubmit. FieldName,  Parent.Default).  Form.Mode property will return 0, 1, 2 based on the form mode. Below are what these values correspond to:

  • 0 – Edit Mode
  • 1 – New Mode
  • 2 – Display Mode

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (39,465)