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 / Submit form and return...
Power Apps
Answered

Submit form and return to the same form

(0) ShareShare
ReportReport
Posted on by 32

Hello

 

I want to submit a "New" record then have the newly created item display again for editing.

Reason for this is I want the "ID" of the newly created item from the SharePoint list available on the form.

Once the ID is available another button is displayed which opens a survey form which is saved to another SP list which also saves the ID of the current SharePoint item.

I have it working once the item is saved but cant figure it out on a newly created item.

 

Thanks for your help

 

Geoff

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @Ormesherg, on your edit form Item Property, put your 

    FormName.LastSubmit

     

     

    Regards,
    Ahmed
    If my reply helped you, please give a 👍. And if it has solved your issue, please consider Accepting it as the Solution to help other members of the community find it more.

  • CU04091518-0 Profile Picture
    32 on at

    Hello

    Currently the ITEM property is set as GalleryUserSelection.Selected, normally its selected from this gallery, which works well.

     

    The new form is called from a home screen with this on the button, so it opens a new form

     

    NewForm(frmEditItem);Navigate(frmEditUser,ScreenTransition.Fade)

     

    From here I would like to fill in the form, then save and return the record again.

     

    Hope you can help

     

    Geoff

  • Verified answer
    AhmedSalih Profile Picture
    6,678 Moderator on at

    @Ormesherg 

     

    1. In your frmEditUser.OnSuccess >> 

     

    UpdateContext({CurrentFormMode: Text(frmEditUser.Mode)})​;
    EditForm(frmEditUser)

     

    • In your frmEditUser.Item >> 

     

    If(CurrentFormMode= "1", frmEditUser.LastSubmit, GalleryUserSelection.Selected)​

     

    • Remember: On the Screen where you have your form "frmEditUser", put in the OnVisible 

     

    UpdateContext({CurrentFormMode: Blank()})

     

     

  • CU04091518-0 Profile Picture
    32 on at

    thanks Ahmed ,I will check it out

  • Verified answer
    CU04091518-0 Profile Picture
    32 on at

    Thanks Ahmed ,you put me on the right track

     

    On the ITEM property
    
    If(CurrentFormMode= "1",frmEditItem.LastSubmit,GalleryUserSelection.Selected)
    
    On the OnSuccess property
    
    UpdateContext({CurrentFormMode: Text(frmEditItem.Mode)});EditForm(frmEditItem)

     

    The above worked 🙂 

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Thank you for letting me know!
    If my reply helped you, please give a 👍. And if it has solved your issue, please consider Accepting it as the Solution to help other members of the community find it more.

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