How to open the display form as dialog

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Gerald Marxer
Posts: 6
Joined: Tue Dec 02, 2014
Contact:

10 Dec 2014

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

11 Dec 2014

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>

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests