Page with a url can be opened with the following javascript code;
Page with html content can be opened with the following javascript code;
Dialog return value can be captured with the following javascript code;
Dialog windows can be closed with the following syntaxes
SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.Cancel);
Or
SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);
- JSOM Query List Items
- JSOM Retrieve all list fields
- JSOM Get ListItem By Id
- JSOM Query with search web services
- JSOM Retrieve all lists
- JSOM Update List Items
- JSOM Delete List Items
- JSOM Create List Items
- JSOM Get group members
- JSOM Get files from a folder
- JSOM Get current user detail
- JSOM Get list content types
- JSOM Initiate SharePoint workflow
- JSOM Set Item Level Permission
- JSOM Get current user groups
- JSOM Get Tasks From Workflow Instance
- JSOM SharePoint Open Dialog Feature
- JSOM Approve / Reject Task
- JSOM Add / Remove users from / to user groups
- JSOM People Picker Control
- JSOM Create / Delete group