How to open the display form as dialog
-
- Posts: 6
- Joined: Tue Dec 02, 2014
- Contact:
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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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>
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>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests