Redirect to Edit form after Saving New Form
-
- Posts: 20
- Joined: Wed Dec 23, 2015
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!
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!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Hello, Charles!
It should work in the latest version of Forms Designer. Can you please tell us what version are you using and what is your version of SharePoint?
It should work in the latest version of Forms Designer. Can you please tell us what version are you using and what is your version of SharePoint?
Cheers
-
- Posts: 20
- Joined: Wed Dec 23, 2015
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
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
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 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).
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests