Save new form and redirect to the edit form
Using the following example, it fails, it seems to not pass the ID of the new item.
fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', '/Lists/Projects/fd_Item_EditForm.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});
Please help. This is Office 365, Forms Designer 3.0.8
fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', '/Lists/Projects/fd_Item_EditForm.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});
Please help. This is Office 365, Forms Designer 3.0.8
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, note that this method works for New forms only. Also, make sure that you're using the correct server-relative URL of the Edit form. Try to use current location -relative URL as demonstrated at out blog:
http://spform.com/forms-designer- ... sharepoint
http://spform.com/forms-designer- ... sharepoint
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests