Link booleans in datasets with repeaters

Solved!
I want to hide or show an element in my repeater (so for each element), depending on a boolean’s value. How can I do that?

Add this inside the $w.onReady() function. #repeater1 and #elementToHide must match the IDs of those respective elements, as set in the Properties toolbar. booleanColumn should match the name [key] of the column you chose in your collection.

You needn’t handle the case where it’s shown because it’ll be shown by default.

$w(‘#repeater1’).onItemReady(($item, row, index) =>
{
if(row.booleanColumn === true)
$item(‘#elementToHide’).hide();
});

Thanks!!!

@Lee Do you also know how to do this on a Dynamic Page, not a repeater?