Create a Save button and return back to the item in edit mode

rss

Posted by apapanic - Sep 17 ’14 at 05:57

Hi, I would like to create a button on my SPform to Save data and reload the page in the 'Edit Form' mode. Can I do that? Basically just want to duplicate the SharePoint 'Save' button and put it in another section of the custom designed form and to load it back into the 'Edit' mode on the same item from the list.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 10 months 26 days
    #1 by Dmitry Kozlov Sep 18 ’14 at 06:54

    Hi,

    You can place additional Save button as described in the following post:
    http://formsdesigner.blogspot.com/2013/12/customization-of-toolbar-buttons-and.html

    Next, put the following code into its OnClick property to stay on the form after saving:

    fd.sourceFormParam(window.location.href);
    
  • apapanic
    Member
    Member for: 4 years 10 months 29 days
    #2 by apapanic Nov 5 ’14 at 06:49

    Hi Dimitry,

    So I basically added a 'Save' button, but it doesn't actually save the data. It's coming back to the item, but the data is cleared out. I think I might be missing a step. This is what I did:

    1. Went to the 'Edit' Form in Designer, Dragged in a 'Save' button.

    2. Clicked on the Save button and accessed properties on the right hand side. Changed 'OnClick' property to execute this:
    fd.sourceFormParam(window.location.href);

    3. Saved Form in Designer.

    4. Went to the list edit form, nothing changing.

     

    Any suggestions?

  • apapanic
    Member
    Member for: 4 years 10 months 29 days
    #3 by apapanic Nov 5 ’14 at 07:05

    [#2]: It's working in the 'Edit' form it seems but not in the 'New' form.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 10 months 26 days
    #4 by Dmitry Kozlov Nov 6 ’14 at 02:16

    [#3]: Hi,

    You can redirect users to the edit form from the new one by following the steps from the following article:

    http://formsdesigner.blogspot.com/2013/10/how-to-open-edit-form-right-after.html

  • SpongeBen SquareJaw
    Member
    Member for: 4 years 9 months 27 days
    #5 by SpongeBen SquareJaw Jan 7 ’15 at 03:16

    [#4]: This doesn't work.

Displaying 1 to 5 of 5 messages