cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jonathanmweaver
Advocate I
Advocate I

Power App Embedded in SharePoint Online Page will not refresh screen on Submit

I have a 1 page Power App edit Form created that uses a SharePoint Online list as its data source. Basically, I want the users to be able to enter the data and submit the NEW form, but then also be able to View/Edit existing forms. Here's what I've done so far.

  1. Created SPO list
  2. Create Power App using Form connected to SPO list, and included a Submit button to submit the form.
  3. Updated list with JSON to open existing items in PA Form.
  4. Create a SharePoint Page and embedded the Power App form on it.
  5. Added a List View web part to the page to view the existing data.

LT Page.png

 

 

 

 

 

 

 

 

 

 

 

 

When I click Submit on the form, the form saves the new SharePoint item, but the form doesn't refresh itself. I get stuck with "Getting your data..." message in the Apps spot.

LT error.png

 

 

 

 

 

 

 

 

 

 

 

 

I tried adding into my Form's OnSuccess Launch("Current Page URL");Exit(true), which opened the page in a new tab but left the existing tab with the above error.

 

How do I get the form to just submit and refresh on the same page?

1 ACCEPTED SOLUTION

Accepted Solutions
jonathanmweaver
Advocate I
Advocate I

I removed the Launch piece from the Form OnSuccess and instead added this to the Submit button's OnSelect, and now the form is resetting itself on the same page. SubmitForm(Form1); ResetForm(Form1); Navigate(scrEdit)

 

View solution in original post

1 REPLY 1
jonathanmweaver
Advocate I
Advocate I

I removed the Launch piece from the Form OnSuccess and instead added this to the Submit button's OnSelect, and now the form is resetting itself on the same page. SubmitForm(Form1); ResetForm(Form1); Navigate(scrEdit)

 

View solution in original post

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

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

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (94,583)