Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to use the built-in Check-in dialog in my custom button

$
0
0

Hi experts, 

I created a custom modal dialog using SP.UI.ModalDialog.showModalDialog, using below code. 

var options = {
// define a URL (and yes, you can pass params to that URL) or reference your HTML object, but NOT both!
//url: '../MyPage.aspx?MyParam=' + SomeVar + '&IsDlg=1',
html: MyHtmlElement,
title:"custom title",
allowMaximize: false,
showClose: true,
width: 500,
height: 500
};
// This ensures the supporting JS needed is loaded on the page
SP.SOD.execute('sp.ui.dialog.js','SP.UI.ModalDialog.showModalDialog', options);

In this dialog, I have a "Check-In" button, now I want to show the SharePoint built-in Check-In dialog (see below figure) when users click this button,

How can I do this?

Thanks,

Michael


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>