Redirect to edit form from other page
Posted by Katy - Apr 22 ’16 at 03:34
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://formsdesigner.blogspot.com/2013/10/how-to-open-edit-form-right-after.html 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://formsdesigner.blogspot.com/2014/01/publish-designed-form-to-any-page.html and it doesn't work. It gives me "Page not found" error
-
rostislavModeratorMember for: 8 years 1 month
Sorry, it's a bug in the software. For now this is the workaround:
//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; });
-
KatyMemberMember for: 8 years 10 months 20 days
[#1]: Thank you for the reply.
I tried the work around, the ID is picked up, but after that i am getting the following screen:
-
rostislavModeratorMember for: 8 years 1 month
[#2]:
Check my post again, you seemed to have missed out the part where I change the path.
-
KatyMemberMember for: 8 years 10 months 20 days
[#3]: 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 KozlovAdminMember for: 9 years 8 months 16 days
[#4]: Katy,
What version of Forms Designer do you use? You can find the version in the lower-right corner of the designer window.
-
rostislavModeratorMember for: 8 years 1 month
[#5]:
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.
-
KatyMemberMember for: 8 years 10 months 20 days
[#6]:
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 :-)
-
KatyMemberMember for: 8 years 10 months 20 days
[#6]:
Actually... we have 3.0.6 now and i don't see any later versions after that in your version history.
-
rostislavModeratorMember for: 8 years 1 month
[#8]:
I don't think we've incremented the version number for this.
-
KatyMemberMember for: 8 years 10 months 20 days
[#9]: So it will look like we just need to reinstall 3.0.6, correct?