Advertisements

Change SharePoint “Save” button to “Submit” in new item forms

SaveToSubmit.PNG

“Save” isn’t as familiar/intuitive to non-SharePoint users as language such as “Submit” can be. Change “Save” to “Submit” by adding a script editor or content editor web part (CEWP) to the newform.aspx page for your list.

  1. Go to your list’s newform.aspx page by changing “Allitems” or your default view name with “newform” (www.mysite.com/subsite/lists/ListName/newform.aspx)
    allitems
    Note: If clicking “new item” takes you to a new page and not a dialog, you can just do that instead since the URL will be correct.
  2. Edit page
    editpage.PNG
  3. Add web part
    addwebpart.PNG
  4. Add script editor (Media and content –> script editor –> add)
    scripteditor.PNG
  5. Edit snippet
    editsnippet.PNG
  6. Paste the following code and insert
    [code]
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("ChangeSPSavetoSubmit()");

    function ChangeSPSavetoSubmit()
    {
    var inputs = document.getElementsByTagName("input");

    for(i = 0; i<inputs.length; i++)
     {
        if(inputs[i].type == "button" && inputs[i].value == "Save")
         {
          inputs[i].value = "Submit";
         }
      }
     }
    </script>
    [/code]
    embedsnippet.PNG

  7. Stop editing page and check the result
    stopediting.PNG

Voila!

submitchanged.PNG

Advertisements

12 Comments

  1. Christine Green

    Reply

    Hi, I just tried this, but when I go to edit the page, I don’t have the same options as shown in your example – no Edit Page. My options are: Add a page, Add an app, Site contents, List Settings, Site settings, Getting Started, Site permissions. I am a site owner and have full rights, so don’t think this is a permissions issue. Does some sort of site feature have to be enabled for this to work? Thanks

  2. Pingback: Azure App Service Developer Platform on Linux; Brand SharePoint with Application Customizers; Government Cloud Security

  3. Reply

    Hi Nate,

    Amazing article, all worked as described! But unfortunately I am after different solution and I really hope you could help! I want to change the links in ‘Save’ and ‘Cancel’ to a new page with ‘Thank You’ message, rather than returning a person who completed a form back to a list, can you help please?

    Regards,

    Julia

    • Reply

      Of course. The easiest way to accomplish that is to make all newform.aspx links (or links to create a new list item) end with an added &source=http://mysite.com

      Whatever you put after = is where people will land upon leaving the form.

    • Reply

      Off the top of my head, the easiest way to do this would be to change the URL you’re sharing for new forms (any buttons or email links to complete the newform.aspx form and add ?source=http://www.google.com to the end of the URL. Whatever you put after “=” will be where users are taken after clicking “Save” or “Cancel”.

  4. Pingback: How to remove the extra “Save” and “Cancel” buttons in a custom new item form in SharePoint – SharePoint Librarian

  5. Pingback: How to make a floating “attachments” block for SharePoint forms – SharePoint Librarian

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: