cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Navigate After Submit Not Working on SharePoint Integration app

I've beat my head against the wall for awhile on this so I want to see if someone else can point me in the right direction.  I have a SharePoint list form Power App (click Customize from list) and have built out alot of customization in the form.  I want to do the normal kind of thing where either would be acceptable:

  • Navigate to a submitted confirmation screen in the app after the item is saved
  • Navigate to a SharePoint confirmation page in the site outside the form

I have tried both methods and nothing works.  No matter what I do, once SubmitForm(SharePointform1) runs it closes the form and nothing ever happens after that.  Additional background - I have all the list fields broken up into tabs with various formatting and validation rules.  I have a button on the final tab that I want to go to the confirmation page (if it was a new form) or just save if the form is in edit mode.  I am already tracking this via a variable VarCurrentMode I set using the OnNew and OnEdit properties of the SharePointIntegration source.  I have tried the following:

 

  • On my submit button, I have this on the OnSelect to go to my confirmation page. Basically, if this was a new form, submit and go to the confirmation screen called SuccessScreen, otherwise just submit:
    • If(VarCurrentMode,"New",SubmitForm(SharePointForm1);Navigate(SuccessScreen,ScreenTransition.Fade),SubmitForm(SharePointForm1))
  • I have tried just directly modifying the OnSave property of the SharePointIntegration source:

I've seen others say this works, or they use the OnSuccess property.  This OnSuccess property does not exist on the SharePointIntegration source for me.  Is this just not possible with a customized list form in Power Apps?  The only other option I know of is to go to the confirmation page without a SubmitForm and have just a SubmitForm on the button there, but that is misleading to the user, and what if they click the X in the top right instead of Submit?  So that isn't viable.  Options?  Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi @dougmallen18 ,

Instead of making the success message a new screen, why not a pop-up?
Put a full screen rectangle with the Fill RGBA(128,128,128,0.5) and then over this a label with your message. Make the Visible on both a Variable and then set the Variable to true on the OnSave. Include also an OK button setting the Variable to false (with the same Visible property).

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

6 REPLIES 6
Highlighted
Super User III
Super User III

Hi @dougmallen18 ,

I cannot test this, but try this on OnSave

If(
   VarCurrentMode="New",
   SubmitForm(SharePointForm1);
   Navigate(SuccessScreen,ScreenTransition.Fade),
   SubmitForm(SharePointForm1);
   RequestHide()
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Highlighted

I'm sorry I had already tried putting the transition to the other screen on the OnSave as well, it didn't work.

Highlighted

Hi @dougmallen18 ,

Instead of making the success message a new screen, why not a pop-up?
Put a full screen rectangle with the Fill RGBA(128,128,128,0.5) and then over this a label with your message. Make the Visible on both a Variable and then set the Variable to true on the OnSave. Include also an OK button setting the Variable to false (with the same Visible property).

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted

Hi @dougmallen18 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted

Warren, I appreciate it but my client decided to nix the whole idea and we moved on to something else.  But it may have worked, I didn't get a chance to test.  I appreciate it!  Out of curiosity, were you able to replicate the OnSave behavior?  I just don't see too many positives to making a customized SP list form vs a canvas form that is just SP list connected.  You hit nothing but problems and can't do this, can't do that.  Thanks for the advice.

Highlighted

Hi @dougmallen18 ,

I use mainly Canvas apps, but have rudimentary new/edit/view interface on SharePoint for a better user experience for users for simple things on SharePoint.

You are correct that there are things which although possible are more difficult to do in Integrated forms.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (16,184)