automatic forwarding

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
RMIC
Posts: 96
Joined: Sun May 10, 2015

18 Feb 2016

Hello,


I use the search SharePoint. After I click on a result, I'm on a display form (display form 1).

Now I must click on a link to get to another display form (display form 2).



How can I, when I am on the display form 1, immediately jump to the display form 2?

I mean an automatic forwarding, without me having to click on the link.



Thank you so much!

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

18 Feb 2016

If the two display forms are within the same list, you can use:

Code: Select all

fd.openForm('fd_Item_DisplayForm2.aspx');
Where "fd_Item_DisplayForm2.aspx" is the filename of the target display form (can be checked in Forms Designer in the bottom left corner.)

Otherwise, use the url from the link and direct the browser to it:

Code: Select all

var url = "https://domain/Lists/alist/fd_Item_DisplayForm.aspx?ID=1"
window.location.href = url;

RMIC
Posts: 96
Joined: Sun May 10, 2015

18 Feb 2016

h, that's easy.

Thanks!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests