I need to open a SharePoint form from an image button but in a modal dialog box. Is that possible?
Thanks in advance
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Make a reference to SP15ModalDialog.js on your page, then you can do stuff like
<span class="addNew" onclick="openInDialog(870,850,true,true,false,'https://...myPage.aspx?IsDlg=1')">label</span>
See https://gist.github.com/javierguerrero/5249652dea3d389727e0 for details
You can append &IsDlg=1 to the end of the link to hide the ribbon and navigation bars