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 / 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,680 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,680 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,680 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard