I have a single static Super Table Field with some Dropdown Fields. Is it possible to loop through the values instead of hardcoding each one? My hardcoded version works without problems but i think a dynamic loop is better for the future.
Here is one example: ('static' is the value of the Super Table btw.)
<li>
<label for="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]">Visibility:</label>
<select name="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]">
<option value="privat"{% if entry.static.visibility.value == "privat" %} selected{% endif %}>Privat</option>
<option value="public"{% if entry.static.visibility.value == "public" %} selected{% endif %}>Public</option>
</select>
</li>
Would be great, if someone has a idea! Thanks