Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
commonModalDialogClose(dialogResult, returnVal) Method

SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal) Method

SharePoint 2010

Last modified: June 04, 2014

Applies to: SharePoint Foundation 2010

Closes the most recently opened modal dialog with the specified dialog result and return value.

SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal);


Type: SP.UI.DialogResult

One of the enumeration values specifying the result of the modal dialog.


Type: Object

The return value of the modal dialog.

This method closes the modal dialog opened with the SP.UI.ModalDialog.commonModalDialogOpen(url, options, callback, args) Method with the dialog result specified by the dialogResult parameter. It passes the return value specified by the returnVal parameter to the callback method specified in the call to the commonModalDialogOpen method.

© 2015 Microsoft