Create a Save button and return back to the item in edit mode
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 KozlovAdminMember for: 8 years 10 months 24 days
Hi,
You can place additional Save button as described in the following post:
http://formsdesigner.blogspot.com/2013/12/customization-of-toolbar-buttons-and.htmlNext, put the following code into its OnClick property to stay on the form after saving:
fd.sourceFormParam(window.location.href);
-
apapanicMemberMember for: 7 years 10 months 28 days
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?
-
apapanicMemberMember for: 7 years 10 months 28 days
[#2]: It's working in the 'Edit' form it seems but not in the 'New' form.
-
Dmitry KozlovAdminMember for: 8 years 10 months 24 days
[#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 SquareJawMemberMember for: 7 years 9 months 26 days
[#4]: This doesn't work.