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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 1
Level 2
AEMWizard
Level 2

Like

1 like

Total Posts

30 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Validate 10
Validate 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 1
Level 2
AEMWizard
Level 2

Like

1 like

Total Posts

30 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Validate 10
Validate 1
Applaud 5
Affirm 1
View profile
AEMWizard
Level 2

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)