cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Navigation not working

I have an edit form that has some fields on it.  I added an arrow with the following in the OnSelect field: SubmitForm(InfoForm);NewForm(DocumentationForm).  When the arrow is clicked in preview it saves the information and then loads the Gallery form instead of the documentation form.

 

Any ideas?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Navigation not working

I had to move the new form and navigate commands to the OnSuccess property of the form to get it to navigate properly following the submit form command.

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

Re: Navigation not working

@dwrm 

I think you are expecting the NewForm function to navigate you to another screen, correct?

 

Instead you should use the NAVIGATE function to do that.

SubmitForm(InfoForm);NewForm(DocumentationForm);Navigate(your_screen_name,None);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Frequent Visitor

Re: Navigation not working

Thanks for the help.  Unfortunately when I changed the code it saves the current form, loads the new one and then navigates back to the original (InfoForm) form on the details screen.  Here is what I updated to:

SubmitForm(InfoForm);NewForm(DocumentationForm);Navigate(DocumentationForm,None);

 

 

Highlighted
Frequent Visitor

Re: Navigation not working

I also tried:

SubmitForm(InfoForm);NewForm(DocumentationForm);Navigate(DocumentationScreen,None);

with the same results...

Highlighted
Frequent Visitor

Re: Navigation not working

I had to move the new form and navigate commands to the OnSuccess property of the form to get it to navigate properly following the submit form command.

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,695)