Save and create new item

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mcgaafar
Posts: 44
Joined: Sun Jan 17, 2016

05 Apr 2016

Hi,

I would like to add a "Save and add another" button on my new form which will save the current item and then redirects to a new blank form to add another item. How would i do that?

Thanks,

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

06 Apr 2016

Hi,

Easily, using fd.sourceFormParam. Place in the onclick handler:

Code: Select all

fd.sourceFormParam('https://example.com/Lists/mylist/fd_Item_NewForm.aspx?List=fbab5dd0-ab88-4daa-b9f9-95330c511f9d');
// or you can even use the following if you're on the new form already
//fd.sourceFormParam(window.location.href);
fd.save().click();

mcgaafar
Posts: 44
Joined: Sun Jan 17, 2016

06 Apr 2016

Thanks a lot, this worked.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests