Page 1 of 1
Create a Save button and return back to the item in edit mode
Posted: 17 Sep 2014
by apapanic
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.
Re: Create a Save button and return back to the item in edit mode
Posted: 18 Sep 2014
by Dmitry Kozlov
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);
Re: Create a Save button and return back to the item in edit mode
Posted: 05 Nov 2014
by apapanic
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?
Re: Create a Save button and return back to the item in edit mode
Posted: 05 Nov 2014
by apapanic
It's working in the 'Edit' form it seems but not in the 'New' form.
Re: Create a Save button and return back to the item in edit mode
Posted: 06 Nov 2014
by Dmitry Kozlov
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
Re: Create a Save button and return back to the item in edit mode
Posted: 07 Jan 2015
by SpongeBen SquareJaw
This doesn't work.