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

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
apapanic
Posts: 5
Joined: Wed Sep 17, 2014

17 Sep 2014

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

18 Sep 2014

Hi,

You can place additional Save button as described in the following post:
http://spform.com/office-365/cust ... oint-forms

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

Code: Select all

fd.sourceFormParam(window.location.href);

apapanic
Posts: 5
Joined: Wed Sep 17, 2014

05 Nov 2014

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
Posts: 5
Joined: Wed Sep 17, 2014

05 Nov 2014

It's working in the 'Edit' form it seems but not in the 'New' form.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

06 Nov 2014

Hi,

You can redirect users to the edit form from the new one by following the steps from the following article:
http://spform.com/forms-designer- ... sharepoint

SpongeBen SquareJaw
Posts: 16
Joined: Mon Nov 24, 2014

07 Jan 2015

This doesn't work.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests