Solved
Creating Dropdown in multifield using Sightly
Hi, I'm trying create a drop using multifield values. Does anyone know the sightly code for this?
Hi, I'm trying create a drop using multifield values. Does anyone know the sightly code for this?
I guess you want to show the multifield items in a dropdown(select).
I have a nested multifield with name options. Multifield has textfield name ./option
Below is HTL to render multifield items as select.
<sly data-sly-list.children="${resource.getChildren}">
<sly data-sly-test="${children.name == 'options'}">
<select data-sly-list="${children.getChildren}">
<option>${item.option}</option>
</select>
</sly>
</sly>Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.