Skip to main content
vardhan
October 16, 2015
Solved

How to Use hide listeners for the Datetime xtype

  • October 16, 2015
  • 2 replies
  • 731 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Try hiding the entire Div - that should work. All elements defined in that div will be hidden. 

2 replies

WhoaShekhar
Level 10
October 16, 2015

Hi there,

Thanks for reaching out to Adobe Community.

You might want to look at the below articles to know more on the xtypes:

https://docs.adobe.com/docs/en/aem/6-0/develop/components/xtypes.html

https://helpx.adobe.com/experience-manager/using/dynamically-updating-aem-custom-xtype.html

Thanks!

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Try hiding the entire Div - that should work. All elements defined in that div will be hidden.