Page 1 of 1

automatic forwarding

Posted: 18 Feb 2016
by RMIC
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!

Re: automatic forwarding

Posted: 18 Feb 2016
by rostislav
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;

Re: automatic forwarding

Posted: 18 Feb 2016
by RMIC
h, that's easy.

Thanks!