Hi there I do something similar on my site. This is the code I use, hopefully it can help you out. Just change the element IDs to match yours. (i.e. “#button3” would replace “#yourElement” , and the same for your dataset ID and repeater ID)
Good luck!
@thousandericas in the image you sent, $w(“#button3”) appears to be the element you need to manipulate.
I imagine that you are using manual dataset connection to the repeater, so to hide the button without having to get the specialTitle you can get the label of this button and hide it if it is empty.
But, you are going to need some more advanced Wix/JavaScript knowledge.
$w("#repeater1").forEachItem(($item, itemData) => {
if ($item("#button3").label === "") { //check if it is empty
$item("#button3").hide()
} else{
$item("#button3").show()
}
})
This is going to loop through your repeater and check if that element has an empty label or not and then hide it.