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.
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.