Expand my Community achievements bar.

SOLVED

Accessing multivalue dropdown values in sightly

Avatar

Level 2

Hi,

Can anyone help me to iterate multi-value drop-down values to sightly from multi-field  touch ui dialog(AEM6.3)

1627249_pastedImage_1.png

sightly code

    <section class="lfa-panel-container gcss-theme-${properties.theme} row" data-sly-use.component="${'**********' @compName='******'}" data-sly-list="${componentmultifieldlist}">   Iterating Multifield items

<div data-sly-list.child="${item['hideTile']}}">     -- Trying to iterate multi value dropdown item ([desktop,mobile])

            <div class="${child} " >           

                     

            </div>

</div>

    </section>

1627364_pastedImage_9.png

AEM - QuestionsAdobe Experience ManagerAdobe Experience Cloud

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You can iterate multivalued property in HTL like below:

<dl data-sly-list="${properties.bgcolor}">

    <dt>index: ${itemList.index}</dt>

    <dd>value: ${item}</dd>

</dl>

If you are using java you can create a list for multiplied and another array or list for multivalued and parse through data-sly-list



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

You can iterate multivalued property in HTL like below:

<dl data-sly-list="${properties.bgcolor}">

    <dt>index: ${itemList.index}</dt>

    <dd>value: ${item}</dd>

</dl>

If you are using java you can create a list for multiplied and another array or list for multivalued and parse through data-sly-list



Arun Patidar