Expand my Community achievements bar.

TOUCH UI Checkbox - Assign Value user unselects

Avatar

Level 5

In the TOUCH UI. 

Is it possible to assign the checkbox property a value when it is unchecked?

Currently, I have something like this:

                                    <newWindow
                                        jcr:primaryType="nt:unstructured"
                                        sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                        fieldDescription="Please check this checkbox if links needs to be open in new window"
                                        name="./newWindow"
                                        text="Open in new window"
                                        value="true"/>
                                    <deleteNewWindow
                                        jcr:primaryType="nt:unstructured"
                                        sling:resourceType="granite/ui/components/foundation/form/hidden"
                                        name="./newWindow@Delete"
                                        value="true"/>

        It sets the property "newWindow" to true when it is selected, but it deletes it when a user unchecks it.

Any help is appreciated.

Thanks,

-Dean

0 Replies