I am trying to: show a table containing all values from a repeatable group's first field (species name) in column 1, and all values from a nested repeatable group (containing checkboxes) to show in the second column for each row (I will format them as a flex box). For each value in the nested group, I want to render <div class="month on"></div> if the field is checked, and <div class="month off"></div> if not checked.
I have tried using the loop editor as well as coding manually based on what I've found in the support forum. Nothing works. It's honestly not very easy.
My Post Field Group looks like [image1].
View called "Fish Species List":
Loop:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%">
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<tr>
[wpv-post-body view_template="loop-item-in-fish-species-list"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Loop item in Fish Species List:
<td>[types field="species"][/types]</td>
<td>[wpv-view name="species-availability-calendar-row"]</td>
View called "Species Availability Calendar (row)":
Loop:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-conditional if="( $(wpcf-species-availability) = '1' )"]<div class="month on"></div>[/wpv-conditional]
[wpv-conditional if="( empty($(wpcf-species-availability)) )"]<div class="month off"></div>[/wpv-conditional]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
In the post I've embedded the "Fish Species List" view.
Link to a page where the issue can be seen:
hidden link (scroll down and click on Species Availability Calendar)
I expected to see a table like I described.
Instead, I got:
1) all values from the other repeatable group in column 1, but duplicated!
2) a third of the values from the nested repeatable group, and each one has evaluated to <div class="month on"></div>.