A cq dialog question, I have two widget in my dialog, textfield and checkbox. what i need is, only when checkbox is ticked (true), then textfield will be available for author to edit, when checkbox is not ticked, the textfield must be disabled...
I have been search a while, couldnt find the answer, please advise , here is my two widgets..
<checkbox
jcr:primaryType="cq:Widget"
defaultValue="{Boolean}false"
fieldDescription="this is a checkbox"
fieldLabel="enable something"
name="./checkbox"
type="checkbox"
xtype="selection" />
<textfield
jcr:primaryType="cq:Widget"
fieldDescription= "this is a textfield"
fieldLabel="textfield..."
name="./textfield"
enable={boolean}checkbox // something gose here to make it enable or disable...
xtype="textfield"/>
