07-01-2019 03:01 AM
I am using the below code snap to display confirmation box.
Alfresco.util.PopupManager.displayPrompt( { noEscape: true, title: this._msg("message.confirm.delete.title"), text: this._msg("message.confirm.delete", $html(this.event.title), displayDate), buttons: [ { text: this._msg("button.delete"), handler: function ... }, { text: this._msg("button.cancel"), handler: function ... isDefault: true }] });
Is there any way to integrate the checkbox within this like given below screenshot?
Any help/suggestion/direction will be highly appreciated. Thanks in advance.
07-01-2019 03:12 AM
Hi,You can include checkbox in displayprompt with below code.
Alfresco.util.PopupManager.displayPrompt({
title: "Delete",
text: "<input type=checkbox id=dltDoc> Want to delete?",
noEscape: true,
buttons: [{
text: "OK",
handler: function onSubmit() {
var chkBox = YAHOO.util.Dom.get("dltDoc").checked;
if(chkBox){
//Your custom code
}else{
//Your custom code
}
this.destroy();
}
},{
text: "Cancel",
handler: function onSubmit() {
this.destroy();
},
isDefault: true
},]
});
Thanks,
Sanjay Bandhniya
Explore our Alfresco products with the links below. Use labels to filter content by product module.