Page 1 of 1

Redirect to Edit form after Saving New Form

Posted: 15 Nov 2017
by charles267
It appears that the following code (which allows a user to be directed to the edit form of a newly created item) only works if the list does not contain any folders.

fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_EditForm.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});

If, however, the list contains a folder, the above code will take the user to the edit form of the first folder visible in the list and not to the edit form of the newly created item. Any thoughts how this can be addressed via JavaScript? Thanks!

Re: Redirect to Edit form after Saving New Form

Posted: 15 Nov 2017
by Nikita Kurguzov
Hello, Charles!
It should work in the latest version of Forms Designer.
VersionNumber.png
VersionNumber.png (2.97 KiB) Viewed 1734 times
Can you please tell us what version are you using and what is your version of SharePoint?

Re: Redirect to Edit form after Saving New Form

Posted: 15 Nov 2017
by charles267
Hi Nikita,

I believe we are on 3.0.5 and because of the way our IT group works, will find it almost impossible to upgrade to the latest version and change anything on the server. Is there a solution you can recommend that we can apply using JS that we can insert via the editor?

Thanks!

-Charles

Re: Redirect to Edit form after Saving New Form

Posted: 16 Nov 2017
by Nikita Kurguzov
Unfortunately, no. We are aware of this bug in the older version of Forms Designer, but it has been fixed since then.

If you could, I would recommend getting an updated version. It will require you to purchase Maintenance license though, if yours has expired (it lasts 1 year after purchase and is included with regular license).