Front End Dropdown Field from Super Table 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.)

&lt;li&gt;
    &lt;label for="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]"&gt;Visibility:&lt;/label&gt;
    &lt;select name="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]"&gt;
      &lt;option value="privat"{% if entry.static.visibility.value == "privat" %} selected{% endif %}&gt;Privat&lt;/option&gt;
      &lt;option value="public"{% if entry.static.visibility.value == "public" %} selected{% endif %}&gt;Public&lt;/option&gt;
    &lt;/select&gt;
&lt;/li&gt;


Would be great, if someone has a idea! Thanks
You should be able to do this in the same way as for a dropdown field in Craft as described in the docs.

Something like this should work if entry is populated:

&lt;li&gt;
    &lt;label for="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]"&gt;Visibility:&lt;/label&gt;
    &lt;select name="fields[{{ fieldHandle }}][{{ block.id }}][fields][visibility]"&gt;
      {% for option in entry.static.visibility.options %}
         &lt;option value="{{ option.value }}"{% if option.selected %} selected{% endif %}&gt;{{ option.label }}&lt;/option&gt;
      {% endfor %}
    &lt;/select&gt;
&lt;/li&gt;