Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Granite Multifield Select w/datasource

Avatar

Level 1

Hey there. I'm trying to implement a multifield select menu with a datasource. The datasource is a Sightly component, and works fine when the select box is outside of the multifield. However when the multifield is used only the first dropdown has the values from the datasource the rest are empty. Here is my dialog:

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured" jcr:title="Top Questions" sling:resourceType="cq/gui/components/authoring/dialog" helpPath="https://www.adobe.com/go/aem6_2_docs_component_en#Text - Sightly"> <content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" margin="{Boolean}false" type="nav"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <forums jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/multifield" class="foundation-layout-util-maximized-alt"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/select" fieldLabel="QnA Forums" name="./qnaforums"> <datasource jcr:primaryType="nt:unstructured" sling:resourceType="/apps/project/components/datasource/qnaforums"/> </field> </forums> </items> </column> </items> </content> </jcr:root>

Is what I am trying to accomplish even possible? If not what are my alternatives? I would honestly rather use checkboxes, but it doesn't look like they work with a datasource. Please let me know. Thanks!

0 Replies