cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ComputerHabit2
Resolver III
Resolver III

Now form after Submit Loads previously selected item

I don't know why this is happening.  I created a form on a different screen.  I can Navigate to the form and its set to a new form.  After I hit save the item is added to the list but then all the fields update to show the item I had highlighted from a data table prior to creating the new item.

Maybe if it's a new item I should be Navigating back to the list so it can be selected?

I'd like it if after I created the item and hit Save it would stay on the screen.  

Maybe it's an issue with the 'Item = datatable.selected' I have setup.  Should I be detecting the new page and have it be some other value?


1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@ComputerHabit2 

In your OnSuccess action of the form, place the following: Set(glbCurrentRecord, Self.LastSubmit)

Set the Item property of your form then to: glbCurrentRecord

This will show you the record that was last submitted (the new record).

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
Nogueira1306
Super User
Super User

It might be because of that item..

You can also try:

 

NewForm(NameOfForm)

OR

 

ResetForm(NameOfForm)

 

Might be that, to

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

RandyHayes
Super User
Super User

@ComputerHabit2 

In your OnSuccess action of the form, place the following: Set(glbCurrentRecord, Self.LastSubmit)

Set the Item property of your form then to: glbCurrentRecord

This will show you the record that was last submitted (the new record).

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,063)