Page 1 of 1

New form to return to referring page

Posted: 02 Jul 2018
by davidnarramore
We have 1200+ sites with a link to an ECT list type named Comment Log. Each site link passes two parameters to the new form to auto fill fields. Upon clicking the save button I want the user to return to the referring page giving them the opportunity to click on the link again to add another comment. I tried using the onclick button event with "window.history.go(-1); " without success. Any help would be greatly appreciated.

David

Re: New form to return to referring page

Posted: 02 Jul 2018
by ragesoft
How about using the "source" parameter? if you open the new-form not in tab, but in same window, you can use the source parameter in the call-event and then, after saving, sharepoint will redirect you to the page by source parameter :)

Re: New form to return to referring page

Posted: 09 Jul 2018
by davidnarramore
ragesoft wrote:
02 Jul 2018
How about using the "source" parameter? if you open the new-form not in tab, but in same window, you can use the source parameter in the call-event and then, after saving, sharepoint will redirect you to the page by source parameter :)
Sorry I'm not following. The form opens in the same window. However on submit the list opens. I want to return to the page that the originating link was on. I tried putting "window.history.go(-1); return false;" in the button onclick event without success.

Re: New form to return to referring page

Posted: 10 Jul 2018
by davidnarramore
When I put the following into the onclick field it returns to the page, but it doesn't write to the database.
window.history.go(-1); return false;

Re: New form to return to referring page

Posted: 11 Jul 2018
by Nikita Kurguzov
Dear David,
Can you post here a full URL of the form? Please, wrap it inside code tags, so it's not considered a hyperlink. If it has a source parameter, it should be quite easy to redirect users back, after the form is saved.
CodeTags.png
CodeTags.png (7.08 KiB) Viewed 2353 times

Re: New form to return to referring page

Posted: 11 Jul 2018
by davidnarramore

Code: Select all

http://connect.xcenda.net/Lists/Comment%20Log/fd_Item_New.aspx?ProjectID=ABB0806151&ClientID=ABB01
Thank you for your help.

Re: New form to return to referring page

Posted: 11 Jul 2018
by davidnarramore
The source parameter worked great! thank you.