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

Customizing SharePoint List with a new screen refuses to save the item

So excited to get into PowerApps after Ignite!

 

I have a new SharePoint custom list, and chose to customize it using PowerApps. I duplicated the default screen that PowerApps provides, and called my new screen "SweetNewScreen". I placed a button on the default screen to switch to the new screen using the Navigate function.


Saved and Published to SharePoint.

 

But when I try to create/edit an item by jumping to "SweetNewScreen", it won't save back to SharePoint. It's almost like SharePoint has no idea what the Save button is supposed to do from "SweetNewScreen. What gives?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @kenleung

I think i figured out what maybe the issue. Because you duplicated the screen and form, PowerApps is trying to submit the first form (which is on the first screen) instead of the second form (on the second screen).

 

When you click Save it submits SharePointForm1 but you actually trying to submit SharePointForm1_1. You can view the save settings by clicking the SharePoint integration options in the form..

 

The Save button at the top of the dialog has its own default settings when you load the app with SharePoint for the first time. As you change the form you will have to edit the save settings to what you need. The quickest way to get it to work will be to add another actionto the Save Button, something like SubmitForm(SharePointForm1_1). That way both forms will be submitted at once.. You can of course use variables etc and submit each form depending on when needed etc

 

There are also multiple ways that you could manipulate the form.. You could use different displaymodes of the form or even manipulate fields on the form with the Visible property of each control.

 

One thing I can say, PowerApps can handle everything InfoPath can quicker and much easier..

 

Let me know if you would like more detail

View solution in original post

7 REPLIES 7
aadilganie
Advocate III
Advocate III

Hi @kenleung

Can you attach a screenshot of the screen as well as the formulas you're using on the button. This will give a better idea of what may be the issue..

 

Thanks!

Aadil

Screenshots attached.

 

I just duplicated the default screen that PowerApps provides, and added a button that uses Navigate function to jump to the new screen.

Here is what happens when I try to save a new list item using the alternate screen (which is again just a duplicate of the screen PA provides)

 

PA save error.png

It seems that a field that is required is not being filled in.. Usually the Title field.. The notification on your screenshot is blocking the first field. Is that perhaps the title field? If not, there could be another field on your form that is not being populated but is required.

Yep, I'm filling the Title field with "test". It works great on the original PA-provided screen which saves the item, but the duplicated screen behaves as if I didn't place "test" in the field and won't save.

 

The reason I'm doing this is to replicate InfoPath's ability to create views and use buttons to jump around to different views and save the item. I thought PowerApps would be able to do, but I might have to go back to InfoPath for my current project.

Hi @kenleung

I think i figured out what maybe the issue. Because you duplicated the screen and form, PowerApps is trying to submit the first form (which is on the first screen) instead of the second form (on the second screen).

 

When you click Save it submits SharePointForm1 but you actually trying to submit SharePointForm1_1. You can view the save settings by clicking the SharePoint integration options in the form..

 

The Save button at the top of the dialog has its own default settings when you load the app with SharePoint for the first time. As you change the form you will have to edit the save settings to what you need. The quickest way to get it to work will be to add another actionto the Save Button, something like SubmitForm(SharePointForm1_1). That way both forms will be submitted at once.. You can of course use variables etc and submit each form depending on when needed etc

 

There are also multiple ways that you could manipulate the form.. You could use different displaymodes of the form or even manipulate fields on the form with the Visible property of each control.

 

One thing I can say, PowerApps can handle everything InfoPath can quicker and much easier..

 

Let me know if you would like more detail

View solution in original post

I just read through several threads and it sounds like submitting multiple forms to a single data source is squirrely, and that the Patch function is the way to go. Bummer. I'd rather not have to write big functions to do the same thing InfoPath can do with a few mouse clicks.

 

I'll have to practice this on my own time. Thanks for your help, I understand now why the SharePoint save button was no bueno.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,182)