top of page

Hide Repeater Items with CMS Database Content



Velo Code:


$w.onReady(function () {
    $w('#dataset1').onReady(() => {
        $w('#repeater1').onItemReady(($item, itemData) => {
            let sTitle = itemData.specialTitle;
            if (sTitle === "" || sTitle === null || sTitle === undefined) {
                $item("#badge").hide();
            } else {
                $item("#badge").show();
            }
        })
    })
});

Enjoy!

Comments


bottom of page