Redirect to Edit form after Saving New Form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
charles267
Posts: 20
Joined: Wed Dec 23, 2015

15 Nov 2017

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!

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

15 Nov 2017

Hello, Charles!
It should work in the latest version of Forms Designer.
VersionNumber.png
VersionNumber.png (2.97 KiB) Viewed 1732 times
Can you please tell us what version are you using and what is your version of SharePoint?
Cheers

charles267
Posts: 20
Joined: Wed Dec 23, 2015

15 Nov 2017

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

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

16 Nov 2017

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).
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests