I want to display message in my dialog. I have a function call on button :
checkDialogSubmit: function(dialog) {
var hrefField = this.getFieldByName("href");
var hrefValue = hrefField.getValue();
if(hrefValue.indexOf('/val/')==-1 ){
//print message on dialog
return false;
}
else{
this.apply();
}
return true;
},
And Here is my button and dialog configuration. I need the message should come on the top of all dialog items.
constructor: function(config) {
config = config || { };
var defaults = {
"title": CQ.I18n.getMessage("Hyperlink"),
"dialogItems": [
{
items
}
],
"buttons": [ { "itemId": "okButton", "name": "okButton", "text": CQ.I18n.getMessage("Ok"), "handler": this.checkDialogSubmit, "disabled": false, "scope": this }, { "itemId": "cancelButton", "name": "cancelButton", "text": CQ.I18n.getMessage("Cancel"), "handler": this.cancel, "disabled": false, "scope": this }
]
};
CQ.Util.applyDefaults(config, defaults);
CQ.form.rte.plugins.LinkDialog.superclass.constructor.call(this, config);
}
var pDialog = CQ.WCM.getDialog("/apps/global/components/general/damassetwhitelistdialog/damassetwhitelistdialog");
pDialog.show();
and in dialog just add a panel with message in it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.