Thank you all for your support. Found the following way to solve the
issue .I added ValidateFields method from within the 2 listeners
(FIELD_LISTENER_LOAD_CONTENT and
FIELD_LISTENER_SELECTION_CHANGED)function ValidateFields(dialog) {
dialog.on("beforesubmit", function(e) { if()
CQ.Ext.Msg.alert(CQ.I18n.getMessage("Error"), CQ.I18n.getMessage("")); return false; } else { return true; }}, this);}