Button to Save and open New Form

How would I create a button that would save a current form and then open a new one. I need a way to allow people to submit multiple items one right after another.
Thanks
Jennifer

Dear Jennifer,
You can add the following code to the button OnClick event:

fd.spSaved(function(result) {
    var listId = fd.spFormCtx.ListAttributes.Id
    result.RedirectUrl = "https://domain.sharepoint.com/sites/sitename/_layouts/15/listform.aspx?PageType=8&ListId=" + listId;
});

fd.save();

This should work, simply replace

https://domain.sharepoint.com/sites/sitename

with the address of your site instead.

Hello @Nikita_Kurguzov, @mnikitina
I try the above code but it is not working.
is this outdated?

Thanks.

Dear @harshp924,
Just tested it with the latest version of SharePoint Online and Forms - it still works. Which version of Forms are you currently running? I am running v1.7.2 in the editor, and v1.0.8.0 in the App Catalog.

Here's the form, as you can see, I've just changed the domain and the site in the URL: