If Multiple Reference Field Empty, Hide Table in Repeater

@kyanmatthewlynch Since you didn’t post any code, I’m guessing from your description that you are using a dataset to populate the repeater and it’s included elements. It’s not clear how you are applying the filter on the tagged members.

The wixData API would provide more flexibility to achieve what you want to do. I’m not saying it’s impossible to do with the dataset approach, but I am a little skeptical.

Here’s an example of how you could go about it with wixData.query providing the data for the repeater where schedVolunteers is the multiple reference field to apply to the table. It simply checks for the length of the schedVolunteers array to see if there were any references (volunteers) and collapses the table if there are none.

import wixData from 'wix-data';
$w.onReady(function () {
    wixData.query("schedCommittees")
    .ascending("committee")
    .include("schedVolunteers")
    .find()
    .then((res) => {
        $w("#repeater2").data = res.items;
    })
    $w("#repeater2").onItemReady(($item, itemData, index) => {
        $item("#txtCommittee").text = itemData.committee;
        $item("#txtDescription").text = itemData.description;
        $item("#table1").rows = itemData.schedVolunteers;
       if (itemData.schedVolunteers.length === 0){
            $item("#table1").collapse();
        }
    })
});