I want to loop through all options in a select field.
I am trying the following:
@{
var form = GetLoop("Fields");
}
@foreach(var field in form){
<select class="form-control">
@foreach(var option in field.GetLoop("Fields")){
<option value="">My field</option>
}
</select>
}
The code outputs the select box, but my options doesn't show. How do I loop my option fields?