Hello guys,
i am linking contents manager’s data to the page(repeater),
but only some of the items need to show the text element.
I would like to hide and collapse the rest of the elements, so i refer to tutorial video to made the code as below, but it doesn’t work.
i would like to show the items which the “showsub”(boolean) was checked.
and the rest of items without boolean got checked will hide and collapse.
$w.onReady(function() {
$w("#dataset1").onReady(() => {
let Restaurant = $w("#dataset1").getCurrentItem();
if(Restaurant .showsub === true){
$w("#text155").show();
$w("#text155").expand();
} else{
$w("#text155").hide();
$w("#text155").collapse();
}
});
});
i am also thinking to show/hide the items with specic tags, but i couldn’t find the way to make the code understand the specific tag.
If anyone could take a look would be very helpful!