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 / Duplicate last entry f...
Power Apps
Unanswered

Duplicate last entry following successful submission

(0) ShareShare
ReportReport
Posted on by 8

I have a PowerApp designed to allow my users to submit requests for resources. The app consists of a form and OnSuccess I direct the user to a Success Screen.

Notify("Submission Successful",NotificationType.Success);
Navigate(ScreenSuccess)

The nature of the work means that often times my users have to submit multiple requests at a time with only minor changes to the information, so on the Success Screen I want to give them the option to get back to an editable form that will populate all the fields with the information that was just submitted so they can make the adjustments and submit another request.

 

I currently have a button on the Success Screen with this code OnSelect, which does direct me back to the appropriate screen but does not populate the editable fields.

NewForm(formNewDemand);
formNewDemand.LastSubmit;
Navigate(ScreenCreateNewDemand)

Can someone help?

 

Updated for clarity

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joe_00 

    Add a display form with the item property Form1.LastSubmit

    Form1 is the name of your edit form.

  • Joe_00 Profile Picture
    8 on at

    That's what I've already tried to do. 

    On the page with Form1 I have a submit button that submits the form OnSelect:

    SubmitForm(formNewDemand)

    Form1 OnSuccess is:

    Notify("Submission Successful",NotificationType.Success);
    Navigate(ScreenSuccess)

     

    And on the ScreenSuccess I have a button that does this OnSelect:

    NewForm(formNewDemand);
    formNewDemand.LastSubmit;
    Navigate(ScreenCreateNewDemand)

     

    But the fields are still always blank when I get back to ScreenCreateNewDemand.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Use a display form and set the item property to  formNewDemand.LastSubmit

  • Joe_00 Profile Picture
    8 on at

    Sorry, I probably should have stated the question a clearer. I want the user to get the form pre-filled with all of the information that they just submitted but also with the option to edit some of the fields, so they can submit multiple requests with less effort. The form is quite long, but often times users need to submit multiple forms with only minor changes. 

    If I use a display form, the user won't be able to make edits, right?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Joe_00 

    That is correct.  I suggest then that you use an Edit form with the Item property:

    Lookup(splist, ID=formNewDemand.LastSubmit.ID).  You can set it to view mode initially and if the user wants to edit it, put a button on the screen for EditForm(formNewDemand) to change the mode and another button to go back to another screen if the user is satisfied with any changes made. You may want to use a copy of the original edit form instead and modify its OnSuccess property so the user doesn't wind up getting in a loop. 

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard