New form to return to referring page

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

02 Jul 2018

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

ragesoft
Posts: 50
Joined: Fri Feb 23, 2018

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 :)

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

09 Jul 2018

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.

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

10 Jul 2018

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;

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

11 Jul 2018

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 2351 times
Cheers

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

11 Jul 2018

Code: Select all

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

davidnarramore
Posts: 76
Joined: Wed Jan 21, 2015

11 Jul 2018

The source parameter worked great! thank you.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests