Page 1 of 1

How to open the display form as dialog

Posted: 10 Dec 2014
by Gerald Marxer
Hi,

How can i create a hyperlink which opens the display form of a list as a dialog ?

The list has the setting "Launch forms in a dialog?" set to yes, but this only works from the standard list menu.

Re: How to open the display form as dialog

Posted: 11 Dec 2014
by Dmitry Kozlov
Hi Gerald,

Please, use the following HTML code to create a link that opens a specific form in a dialog:

<a href="/Lists/Custom/fd_Item_Edit.aspx?ID=1" onclick="SP.UI.ModalDialog.showModalDialog({url: '/Lists/Custom/fd_Item_Edit.aspx?ID=1'}); return false;">Open in a dialog</a>