web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

save buttin

(0) ShareShare
ReportReport
Posted on by 407

I am currently dead in the water and have not been able to find a fix for my custom save button.  Hoping someone can help.

I created a button on the form so that it would go to a thank you screen so they know that the changes saved.

It was working before, but recently stopped and I'm not sure what happened.  It works when i save NEW entries, but not edited entries.

I've tried using the following for OnSelect

SubmitForm(FormNew)

SubmitForm(FormEdit)

 

In sharePointIntegration for OnSave i have the following

If(SharePointFormMode="CreateForm", SubmitForm(FormNew), If(SharePointFormMode="EditForm", SubmitForm(FormEdit)))

 

thanks!

Categories:
I have the same question (0)
  • SeanHenderson Profile Picture
    1,104 on at

    @DCNehs 

    I'm sorry, I'm not sure I understand the scenario. If you create a Customized Form from SharePoint, it shouldn't need multiple explicit screens and buttons for Editform or Newform, since it directs users based on what they select in SharePoint.

  • DCNehs Profile Picture
    407 on at

    it's a rather large form with multiple tabs.  When you click on the out of box save button it saves but it doesn't give any indication that the changes were actually saved or submitted and was confusing to my end users.  The team would like a save button to click on which will save the changes and then take them to a screen that says thank you, your changes have been submitted.

  • DCNehs Profile Picture
    407 on at

    @SeanHenderson 

    hmm, I just did another test and it looks like the out of box IS taking them to my other screen.  It wasn't doing that last week. However, when I create a new list item I'm getting the following  error.  It's still saving the entry though.  I only have 1 mandatory column entry right now.  Do you know if there is a certain type of column that I might need to look at?

     

    An entry is required or has an invalid value. Please correct and try again.

    thanks!

     
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @DCNehs ,

    Could you please share more details about the error message within your app?

    How do you navigate to your "Thank You" screen in your app? Could you please share a bit more about the formula?

     

    Based on the needs that you mentioned, if you want to navigate to your "Thank You" screen, I think the OnSuccess property could achieve your needs. Please consider set the OnSuccess property of the FormNew to following:

    Navigate(ThankYouScreen)

    set the OnSuccess property of the FormEdit to following:

    Navigate(ThankYouScreen)

    Add a "Exit" button in your ThankYouScreen, set the OnSelect property to following:

    ResetForm(FormNew);
    ResetForm(FormEdit);
    RequestHide()

     

    More details about creating separated forms to create, view and edit, please refer to the following blog:

    https://powerapps.microsoft.com/es-es/blog/separate-custom-forms/

     

    If the issue still exists, please consider re-configure your custom forms based on above blog, then check if the issue is solved.

     

    In addition, you could also consider submit your form data using Patch function instead of the SubmitForm function. Please consider set the OnSave property of SharePointIntegration control to following:

    If(
     SharePointFormMode = "CreateForm", 
     Patch('YourSPList', Defaults('YourSPList'), FormNew.Updates);ResetForm(FormNew);Navigate(ThankYouScreen)
     SharePointFormMode="EditForm", 
     Patch('YourSPList', Defaults('YourSPList'), FormEdit.Updates);ResetForm(FormEdit);Navigate(ThankYouScreen)
    )
    

     

    Best regards,

  • DCNehs Profile Picture
    407 on at

    @v-xida-msft 

    The error only comes up when I try saving a new list item. 

     

    SahrePoint Integration is set up with the following

    If(SharePointFormMode="CreateForm", SubmitForm(FormNew), If(SharePointFormMode="EditForm", SubmitForm(FormEdit)))

     

    OnSuccess is set to

    SubmitForm(FormNew);Navigate(ThankYou)

     

     

     

     

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @DCNehs ,

    Why do you put the SubmitForm(FormNew) formula within the OnSuccess property of the Edit form?

     

    Based on the needs that you mentioned, I think there is something wrong with the formula typed within the OnSuccess property of the Edit form.

     

    Please consider remove the SubmitForm(FormNew) formula from the OnSuccess property of the Edit form, and put the  SubmitForm(FormNew) formula within the OnSave property of SharePointIntegration control.

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • DCNehs Profile Picture
    407 on at

    @v-xida-msft 

    Hi! 

     

    I had added those because it was suggested in another discussion board.  I believe it was one that is a part of Facebook.  I've made the changes you suggested and am still receiving the error when trying to save a new form.

     

    I'm also now back to an issue where using the out of box save button no longer works and nothing is getting saved back to the sharepoint list item. 

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @DCNehs ,

    Have you taken a try to re-customize your form using the blog I provided above?

     

    Currently, I could not reproduce your issue on my side. Please consider take a try to re-customize your form using the blog I provided above, then check if the issue is solved.

     

    Best regards,

  • DCNehs Profile Picture
    407 on at

    @v-xida-msft 

    It's what I used to set the form up.   Found that same information by watching a video and he pointed to that same blog.  I went back and added the other stuff I had back in and it's working again (saving) but still have the error.

     

    Hopefully I can find someone at SharePoint fest that can maybe take a look.  Easier for someone to see in person.  I really hope I don't have to rebuild this.  It has 6 tabs and 39 columns of information that all have to be separated out.  I guess practice would make perfect if I do.  🙂

    thanks for all the help!

  • DCNehs Profile Picture
    407 on at

    @v-xida-msft 

    I had misread one of your instructions for OnSuccess and had Submit listed twice.    Had someone had SP fest go through it. 

    In my New form I ended up having to REMOVE Submit since it was already set up in the SharePoint Integration.    I get it now.  Well at least this. 🙂

     

    THANKS!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard