top of page
Webmaster Help
// Hide inactive buttons in repeater
paste this code to show or hide buttons

Show me
// Hide inactive buttons in repeater import wixData from 'wix-data'; // not sure this line is needed $w.onReady(function () { // change #dataset1 to relevant name // change #repeater1 to relevant name // change #video to relevant name // duplicate the $item line to hide additional items $w("#dataset1").onReady(() => { $w("#repeater1").onItemReady(($item, itemData, index) => { // duplicate next line as many times as needed if(!$item('#video').link){$item("#video").hide();}. // hide video button if it has no link // add duplicate hide instructions above this line } ) }) });
bottom of page