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

redirected after saving edit form

Hi

To validate an Edit form I use an icon button with a "SubmitForm(EDIT_PRODUCT_FORM)" function.
After clicking on the button I am sent back to another product.


How can I be redirected after saving the modified values?

 

thanks for your help

39 REPLIES 39
tuonoman
Helper IV
Helper IV

Hi the community all,
I try several tests, nothing to do! I crack!😫
After "submitform" I am automatically switched to the product detail page of another product (ID1).
I found this discussion on the forum which seems to deal with the same problem.

Solved: Submit form goes Back, instead of navigate to the ... - Power Platform Community (microsoft....


Does anyone have a proposal for me

 

on this test, I am redirected to the form "detail _product" but from another one than the one I just edited.

 

test1.png

 

setting of my button "submitform"

test2.png

 

 

Drrickryp
Super User II
Super User II

Check the OnSuccess property of the form for a Navigate() or Back function.

tuonoman
Helper IV
Helper IV

Hi @Drrickryp 

If I'm not talking nonsense, this is the first picture of my previous message.
Is that right?

tuonoman
Helper IV
Helper IV

@community


I have tried several solutions


1 In OnSuccess of EDIT_PRODUCT_FORM I indicated Navigate(PRODUCT LIST)
I switch to the page " PRODUCT LIST ". This is normal

 

2 In OnSuccess of EDIT_PRODUCT_FORM I indicated Navigate('PRODUCT EDIT')
I switch to the "PRODUCT EDIT" page but not the good product.

 

3 In OnSuccess of EDIT_PRODUCT_FORM I indicated Navigate('PRODUCT DETAIL')
I switch to the "PRODUCT DETAIL" page but not the good product.

 

4 In OnSuccess of EDIT_PRODUCT_FORM I indicated Back()
I switch to the "PRODUCT EDIT" page but not the good product.

 

In short... I don't understand anything.
Is it possible to add in the "Navigate" function the notion of the last product selected in the "product list"?

 

Is it a BUG?

 

Thanks for your help 

tuonoman
Helper IV
Helper IV

HI the powerapps community

 

No one can explain to me why I am redirected to a different page than the one I just validated the modification on.

Is this a bug?

 

Thanks 

RandyHayes
Super User III
Super User III

@tuonoman 

Why don't you try putting a Back() function in your OnSuccess of the Form?  That would take you back to the screen you came from, presumably that one you just validated the modification on.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
RandyHayes
Super User III
Super User III

@tuonoman 

Actually, I got ahead of my reading...I see you did that.

So, what is the Item property of your Forms?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

@RandyHayes

 

the current ownership of item is  "LookUp(PRODUCT; ID_PRODUCT = LISTEPRODUCT.Selected.Label3_5.Text)"

 

I did the test on the basis of my same file, but with the automatic powerapps editor and the problem is the same. The form goes back to the first part of the list

RandyHayes
Super User III
Super User III

@tuonoman 

I believe there are some terms that are getting confused.

Your post has focused on Redirecting after submitting the form - this is all about navigating screens.  But, your post has this statement "After "submitform" I am automatically switched to the product detail page of another product (ID1).".  So, that is vastly different.  

If I am understanding you, your problem is NOT that the screen you want to appear (the Details Page) appears, it is that when you are on screen you want to be on, the form is showing the wrong item.

 

If the above is true, then this is all about the Item property of all of your forms.  They need to be the same.  And, they should not be based on the selected item of your Gallery (as, if it is, it is possible that it is reselecting the first item after you submit and thus all your forms will show the first item).

 

So, let me know what all of the Item properties are of all the forms involved in this record (Detail, edit, etc).

Also, what and where is LISTEPRODUCT and what is it's Items property?

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
tuonoman
Helper IV
Helper IV

@RandyHayes 

 

Thank you for all your explanations.

I am sorry if my explanations are not clear.

I made a little video for explanation

I hope it will bring you more precision.

 

https://youtu.be/oOkvpYfIpVI

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (57,883)