Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Keeping Data Card Values After Submitting Form

I have an edit form that I am using to write entries to a share point list. I have two buttons that I want to use to be able to submit the form. The "Next Part" button will submit the entry and reset the form to default values. This works without any issues. My problem is that I want the "Next" button to submit the entry and retain the last submitted values in the fields outlined in red. The picture that shows this is attached. This will help to minimize the amount of data the user has to re-enter each time. My Edit Form is made up of all data cards. No standard text boxes or any other standard entry fields. Can anyone help me figure out how to do this?

Super User III
Super User III

You can set a variable in the OnSucess of the EditForm:



Then in the field you want to autopopulate, put:


Example: varLastSubmit.TicketID


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Super User III
Super User III


Put this code in the OnSuccess property of your Edit Form.

Set(lastRecord, Form1.LastSubmit)


Then put this code in the Default property for the Part Number Card

If(Form1.Mode=FormMode.New, lastRecord.'Part Number')


Repeat as needed for the rest of the Cards in your form...


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."



I tried your suggestion and it still resets the value to default after I click the next button. This is the code I have for the OnSelect value of the "Next" button. Do I need to change this?

SubmitForm(EditForm1); NewForm(EditForm1)



Your code looks good... as does mine 😎  That probably means it was just entered in the incorrect property.


Can you please share a screenshot of where its being entered?



See the attached screen shots. Sorry, I had to blur out some info...

i have your same problem.


Ho do you have resolve it ?

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,343)