Forum Discussion
Change SharePoint Save button to Submit in new item forms
Rafael Benicio Are you using the modern or classic view? If modern then you can do using powerapps. But if you are using classic view then you can do using a small jquery function as shown below:
//I am using the ID of the button as identifier
$("#ctl00_ctl34_g_119225bf_8f0a_48d3_b96a_5e8213e30238_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem").value="Submit";Output looks the following:
If I could help to find the solution, please like or mark the answer as solution.
Thanks,
Vik
Hi Vikram_Samal
Yeah, I heard I could get it accomplished with PowerApps. I am using a modern view. My question is: would that change on my list in new items?
I might create an app that would have the SP list as a source, but for now, I am planning just to use the list.
Thanks!
- Vikram_SamalJun 01, 2020MCT
Rafael Benicio You don't have to change anything in your list just customize the form using the Power-apps from the option below.
I created a small example for you and the form looks something like this it took few minutes for me but if you have any question feel free to refer this article which step by step walk you though: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/customize-list-form#:~:text=Open%20your%20list%2C%20select%20PowerApps,all%20versions%20button%2C%20select%20Save.
Only thing you might need help is binding with the buttons once you add to the page.
For Save: The formula is SubmitForm(SharePointForm1)
For Clear: The formula is: ResetForm(SharePointForm1)
Many of things you might be already aware please ignore them. If I could help to find the solution, please like or mark the answer as solution.
Thanks
Vik
- Rafael BenicioJun 02, 2020Brass Contributor
Hi Vikram_Samal ,
Thanks for your reply. I was able to connect my list to PowerApps. I went to On Save and On Cancel options, and the functions look exactly what you shared.
Where do I insert the first script you sent in order to change the save button to submit? Thank you!
- Vikram_SamalJun 02, 2020MCT
Rafael Benicio When you will be in the form select the button where you want to add the formula and then on the top you can see the formula bar where you have to apply the formula. Find the screenshot. The SubmitForm is the function and "SharePointForm1" is the name of the form.
If I could help to find the solution, please like or mark the answer as solution.
Thanks
Vik