cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mirtemir
Helper IV
Helper IV

After submit form, navigate to the entry that is lastsubmitted

I created an PowerApp with a SharePoinlist (mylist).

After i submit a new item in the Powerapp, i would like to navigate to my DetailScreen, which has a DetailForm and see the entry that has just been submitted. I don't seem to make that work.

 

On my submit button i have this code SubmitForm(NewForm)

And on the OnSuccess Navigate(DetailScreen)

How can i achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions

Your code is fine. Am only thinking you code is place at the wrong place.

You have stated 2 form DetailForm1 and NewFormHRM

Which form are you submitting and where is the OnSuccess placed? DetailForm1 or NewFormHRM
------------

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.

View solution in original post

11 REPLIES 11
eka24
Super User
Super User

Your code seem fine. but is your form named "NewForm"? and do you see the data successfully submitted to the list?

------------

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.

Yes, the data is successfully submitted.

My newform is called NewFormHRM

The detailform is called DetailForm1 and is on another scree, DetailScreenHRM

Your code is fine. Am only thinking you code is place at the wrong place.

You have stated 2 form DetailForm1 and NewFormHRM

Which form are you submitting and where is the OnSuccess placed? DetailForm1 or NewFormHRM
------------

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.

I am submitting form the sreen NewHRMscreen and use the form NewFormHrm.

NewFormHRM has the OnSuccess placed.

i accidently accepted your answer as a solution.

Please take a screenshot of the two formulas.

------------

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.

Mirtemir
Helper IV
Helper IV

Ok, here are the pictures. 

eka24
Super User
Super User

Please show the Onsuccess as well with the Form.

------------

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.

ok, is this what you need?

Helpful resources

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,333)