Hi, I tried to modify the code so the element that shows or not is a box and it doesn’t work. I used this:
$w.onReady( function () {
$w(‘#repeater1’).forEachItem(($w, itemData, index) => {
$w(‘#dataset1’).getItems(index, 1).then((result) => {
$w(‘#dataset1’).onReady(() => {
let items = $w(‘#dataset1’).getCurrentItem();
if (items[“Subvencionada”]) {
$w(‘#box2’).toggle();
$w(‘#box2’).show()
} else
$w(‘#box2’).toggle();
$w(‘#box2’).hide();
})
})
})
})
Can somebody tell my why tho? haha
Thanks in advance!