Redirect to edit form from other page
HI, I have a form that redirects user from new to edit for additional editing (some workflows attached). I was using this instruction for creating that: http://spform.com/forms-designer- ... sharepoint It is working if i am adding items from the New Item link in the list.
But i need to place this form on another site page, so i was trying to do that using this article: http://spform.com/office-365/publ ... rrent-site and it doesn't work. It gives me "Page not found" error
But i need to place this form on another site page, so i was trying to do that using this article: http://spform.com/office-365/publ ... rrent-site and it doesn't work. It gives me "Page not found" error
Sorry, it's a bug in the software. For now this is the workaround:
Code: Select all
//need to set the pageListId on page load
_spPageContextInfo.pageListId = '{' + fd._listId() + '}';
fd.onsubmit(function() {
//also the path to the edit form must be absolute, not relative
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', '/Lists/list/fd_Item_Edit.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});
I tried with both links: relative and absolute, and the weird thing is that it always referring to ID=4 and I don’t have item with ID =4 in the list, it was removed early during testing, so apparently the ID is not picked up correctly, I was wrong before saying that it is fine.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Katy,
What version of Forms Designer do you use? You can find the version in the lower-right corner of the designer window.
What version of Forms Designer do you use? You can find the version in the lower-right corner of the designer window.
Katy, we've fixed the bug in the current Forms Designer. Please, if you're on SP On-premises, download and install the latest version; if you're on SP Online, clear your browser's cache and it should work as expected. Of course, you will still need to include an absolute path to setUrlParam.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests