cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

Hi @Anonymous ,

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
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

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.

 

Anonymous
Not applicable

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

Hi @Anonymous ,

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

Hi @Anonymous ,

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.

Anonymous
Not applicable

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.

Hi @Anonymous ,

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
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 (43,988)