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 / Keeping Data Card Valu...
Power Apps
Unanswered

Keeping Data Card Values After Submitting Form

(1) ShareShare
ReportReport
Posted on by 27

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?

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

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

     Set(varLastSubmit,EditForm.LastSubmit)

     

    Then in the field you want to autopopulate, put:

      varLastSubmit.ColumnName

    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.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @wagner_nathan 

    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."

  • wagner_nathan Profile Picture
    27 on at

    @mdevaney 

     

    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)

     

  • mdevaney Profile Picture
    29,989 Moderator on at

    @wagner_nathan 

    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?

  • wagner_nathan Profile Picture
    27 on at

    @mdevaney 

     

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

  • gennarodp Profile Picture
    294 on at

    i have your same problem.

     

    Ho do you have resolve it ?

  • jordanaste Profile Picture
    10 on at

    I also have the same issue, any idea how to solve? 

  • kmaack Profile Picture
    39 on at

    Has anyone been able to get this to work? I'm trying to do the same thing, but it still resets the form after it is submitted.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard