ACS Commons 3.19.0, Nested Multi-field, Checkbox State.

AEMWizard

23-03-2020

Hi, 

I am using the ACS Commons multi-field extension for my Touch UI dialogue. The Touch UI dialogue consists of 1 multi-field with a child of "checkbox". 

As an author, I will create 5 instances of the multi-field, and un-tick all the check boxes. When I save, I get a successful save status. When I re-configure the dialogue, I'm surprised to see that the check boxes are infact checked. This is because onSAVE, the values are not saving unchecked. Why is ACS commons not respecting unchecked? Seems like the value="true" is locked down, meaning that regardless of anything set, the value="true" will be set.

How would I get the checkbox to show it's state properly".

 

<field
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/foundation/form/fieldset"
    acs-commons-nested=""
    name="./listItems">
    <layout
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
    <items jcr:primaryType="nt:unstructured">
        <column
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/container">
            <items jcr:primaryType="nt:unstructured">
                <isLabeled
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
                    fieldLabel="Is Label"
                    name="./isLabeled"
                    text="Is Labeled"
                    uncheckedValue="false"
                    value="true"/>
            </items>
        </column>
    </items>
</field>

 

 

 

 

Thanks.

Accepted Solutions (0)

Answers (0)