cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MarcoLotscherNC
Level: Powered On

PowerApps on SharePoint List not closing (anymore)

I have created a simple PowerApps on a SharePoint list. All of a sudden the "Save" button on the top left doesn't close the form anymore. The data is still saved (sent to the list).

 

I have tried to create a button to manually save and close the form using the following:

SubmitForm(SharePointForm1) ; Exit()

 

The same thing happens. The form is saved, but not closed.

 

Similar behaviour happened several times now in different forms I have created. So far I fixed this by creating a new form. I hope there's a better way to fix this. Any ideas?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerApps on SharePoint List not closing (anymore)

Hi @MarcoLotscherNC ,

 

I agree with what @panand99  was saying. Please consider using Back or Navigate functions to navigate to a different screen.

By the way, you could also start an app from data automatically with SharePoint list to know more about the app configuration:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/app-from-sharepoint

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
FMesquita
Level: Power Up

Re: PowerApps on SharePoint List not closing (anymore)

Instead of having to recreate the form, you can:

 

Click the form SharepointForm1

Click Advanced tab 

On the OnSuccess action, you append to the existing code: ResetForm(SharePointForm1); RequestHide() 

 

Hope that helps others with the issue.

View solution in original post

8 REPLIES 8
panand99
Level 10

Re: PowerApps on SharePoint List not closing (anymore)

Hi,

The Exit function exits the currently running app. The user is returned to the list of apps, where they can select another app to open.

 

You can use Navigate function to move to another screen,

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

 

 

Community Support Team
Community Support Team

Re: PowerApps on SharePoint List not closing (anymore)

Hi @MarcoLotscherNC ,

 

I agree with what @panand99  was saying. Please consider using Back or Navigate functions to navigate to a different screen.

By the way, you could also start an app from data automatically with SharePoint list to know more about the app configuration:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/app-from-sharepoint

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

MarcoLotscherNC
Level: Powered On

Re: PowerApps on SharePoint List not closing (anymore)

Thanks for the tipps.

 

I think, I did not explain the situation clear enough.

 

I'm using PowerApps to modify the Forms of a SharePoint List. So, no standalone PowerApps.

 

the default behaviour on a SharePoint List item is the following (refer to Screenshot):

1. Click on New Item on a sharepoint list, opens the "PowerApps" form.

2. Click on the Save Button on the top left. Safes the item and closes the form.

3.  I'm redirected to the sharepoint list

 

This suddenly did not work anymore. If I click on "Save" it only saves the item, but the PowerApps remains open.

 

Even if I add a custom button into the form using this rules, it does not close:

SubmitForm(SharePointForm1)  ; Exit()

 

MarcoLotscherNC
Level: Powered On

Re: PowerApps on SharePoint List not closing (anymore)

I have recreated the form again. Now it works. I did not change any formular. Unfortuantely I don't now what cause it.

csonakos
Level: Power Up

Re: PowerApps on SharePoint List not closing (anymore)

I feel for you. The same happened with my form - over suddent the save button would not work. 

It is a fairly complex form, so I will try to find ways to resolve the problem - just cannot bring myself to re-create the form from scratch again.

 

I will post the solution if I find any.

csonakos
Level: Power Up

Re: PowerApps on SharePoint List not closing (anymore)

It turns out that in my case a newly added SharePoint field (that I also added to the PowerApps form) casued the issue.

I still do not know why it messed up the form.

 

Anyway, luckily I did not make many other changes to the form, so I decided to revert back to the previous working version. My form now works again, I just need to figure how to add the new field without breaking anything else...

 

I think PowerApps has a lot of potentials but it is still a bit temperamental and fragile. Hopefully Microsoft will make some improvements soon.

Highlighted
FMesquita
Level: Power Up

Re: PowerApps on SharePoint List not closing (anymore)

Instead of having to recreate the form, you can:

 

Click the form SharepointForm1

Click Advanced tab 

On the OnSuccess action, you append to the existing code: ResetForm(SharePointForm1); RequestHide() 

 

Hope that helps others with the issue.

View solution in original post

sidacra
Level: Powered On

Re: PowerApps on SharePoint List not closing (anymore)

This one works for me! Thanks! Smiley Happy

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,818)