Checkbox hide and show is not working
Hi Team
Checkbox hide and show functionality is not working. Please check my xml and guide me if anything is required.
my requirement is when I select checkbox brandName textfield should be visible. if it is unchecked brandName textfield should be hidden.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:granite="http://www.adobe.com/jcr/granite/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Order Search and List Dialog"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<orderNumber
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Please input Order Number"
fieldLabel="Order Number"
name="./orderNumber"
required="true"/>
<changeBrand
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./changeBrand"
deleteHint="{Boolean}true"
value="true"
uncheckedValue="false"
granite:class="cq-dialog-dropdown-showhide"
text="Do you want the change the Brand">
<granite:data
jcr:primaryType="nt:unstructured"
cq-dialog-dropdown-showhide-target=".checkbox"/>
</changeBrand>
<container
jcr:primaryType="nt:unstructured"
granite:class="hide checkbox"
sling:resourceType="granite/ui/components/coral/foundation/container">
<brandName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Please input Label for Brand Name"
fieldLabel="Brand Name"
name="./brandName"/>
</container>
</items>
</content>
</jcr:root>
