Posts

Showing posts with the label Model dialog box result

Close Model Dialog Box in SharePoint 2010

Hi , If you want to close your open dialog box, you can use below given scripts : To send cancel result on the parent form : SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel,' Your Message Here   ');  also you can use this script to send Cancel result message on the parent form : window.frameElement.cancelPopup(); To send OK result on the parent form from current form : SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK, 'Your Message Here');  also you can use this script to send commit result message on the parent form : window.frameElement.commitPopup(); You can use this script in your programming to close the model dialog box in SharePoint 2010