How to Use hide listeners for the Datetime xtype
Hi,
I am trying to use the datetime xtype in the d
function(object,value){var dialog=object.findParentByType('dialog'); var type = dialog.form.findField("./noofcolumns"); var headingcolumn1 = dialog.form.findField("./headingcolumn1"); if(value == '1'){ headingcolumn1.show(); headingcolumn1.allowBlank = true; } else if (value == '2') { headingcolumn1.hide(); headingcolumn1.allowBlank = true; }else{ headingcolumn1.hide(); } }ialog ( CQ 5.6 ). I want to show the datetilme field to show or hide via the listeners. i can see that if i am hiding the datetime node, still the field label and description. are not hidden. But the same works for the datefield xtype. Am i missing any..? Below is my listeners function.