Page 1 of 3
Redirect to edit form from other page
Posted: 22 Apr 2016
by Katy
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
Re: Redirect to edit form from other page
Posted: 25 Apr 2016
by rostislav
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;
});
Re: Redirect to edit form from other page
Posted: 25 Apr 2016
by Katy
Thank you for the reply.
I tried the work around, the ID is picked up, but after that i am getting the following screen:

Re: Redirect to edit form from other page
Posted: 26 Apr 2016
by rostislav
Check my post again, you seemed to have missed out the part where I change the path.
Re: Redirect to edit form from other page
Posted: 26 Apr 2016
by Katy
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.
Re: Redirect to edit form from other page
Posted: 27 Apr 2016
by Dmitry Kozlov
Katy,
What version of Forms Designer do you use? You can find the version in the lower-right corner of the designer window.
Re: Redirect to edit form from other page
Posted: 27 Apr 2016
by rostislav
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.
Re: Redirect to edit form from other page
Posted: 27 Apr 2016
by Katy
Thank you Rostislav!
I will test it as soon as my change to update the version would be approved by managment and processed ... That takes some time in the company

Re: Redirect to edit form from other page
Posted: 27 Apr 2016
by Katy
Actually... we have 3.0.6 now and i don't see any later versions after that in your version history.
Re: Redirect to edit form from other page
Posted: 27 Apr 2016
by rostislav
I don't think we've incremented the version number for this.