The quick-to-Open a SharePoint dialog modal form is via Javascript below
12345 |
function OpenPopUpPage(url, callback, width, height) function OpenPopUpPageWithTitle(url, callback, width, height, title) function OpenPopUpPageWithDialogOptions(dialogOptions) |
The dialogoptions supports the following
Options | Property
Description |
Title |
A string that contains the title of the dialog. |
Url |
A string that contains the URL of the page, appears in the dialog. If both URL and HTML is specified, URL takes precedence. Either URL or HTML must be specified. |
Html |
An Element (such as DIV) A, string that contains the HTML of the page, appears in the dialog. If both HTML and URL is specified, URL takes precedence. Either URL or HTML must be specified. |
X |
An integer value that specifies the x-offset of the dialog. This value works like the CSS left value. |
Y |
An integer value that specifies the y-offset of the dialog. This value works like the CSS top value. |
Width |
An integer value that specifies the width of the dialog. If width is not specified, the width of the dialog was autosized by default. If AutoSize is False, the width of the dialog are set to 768 pixels. |
Height |
An integer value that specifies the height of the dialog. If height is a specified, the height of the dialog is autosized by default. If AutoSize is False, the dialog height was set to 576 pixels. |
Allowmaximize |
A Boolean value that specifies whether the dialog can is maximized. True if the Maximize button is shown; otherwise, false. |
Showmaximized |
A Boolean value that specifies whether the dialog opens in a maximized state. True the dialog opens maximized. Otherwise, the dialog is opened at the requested sized if specified; Otherwise, the default size, if specified; Otherwise, the autosized size. |
Showclose |
A Boolean value that specifies whether the Close button is appears on the dialog. |
AutoSize |
A Boolean value that specifies whether the dialog platform handles dialog sizing. |
Dialogreturnvaluecallback |
A function pointer that specifies the return callback function. The function takes the parameters, a dialogResult of type SP. RII DialogResult enumeration and a returnvalue of type object that contains any data returned by the dialog. |
Args |
An object, that contains data, is passed to the dialog. |
This is with assumption, the following SharePoint JS file is loaded:
- Sp. Core.js
- Sp. RII Dialog.js
Hence, you can always add this JS to your custom app to do the call out! Reference: http://wp.ahcheng.com/2013/04/09/calling-dialog-modal-form-in-sharepoint-2013/
SharePoint 2013 dialog box