Hi Paul, thank you so much for your help. ![]()
I have used your example and change from Global scope to Repeater Item scope. And now the code works.
$w . onReady (() => {
$w ( “#dataset1” ). onReady (() => {
$w ( “#repeater1” ). onItemReady ( ( $item , itemData , index ) => {
if ( itemData . premiumApartments === true ) {
$item ( “#text38” ). expand ();
$item ( “#box91” ). expand ();
}
else {
$item ( “#text38” ). collapse ();
$item ( “#box91” ). collapse ();
}
});
});
});