Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

TOUCH UI Checkbox - Assign Value user unselects

deana66659071
Level 4
Level 4

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