I have been trying this from the morning.
I am trying to hide the button connected to the database when the field is empty to which is connected to.
the button is # button1
it is connected to a document field in the database.
Please help
Thanks in advance
Pulkesh
![](https://static.wixstatic.com/media/a27d24_b148ffd8adec47959f74c81055b43bf1~mv2.png/v1/fill/w_825,h_366,al_c,q_85,enc_auto/a27d24_b148ffd8adec47959f74c81055b43bf1~mv2.png)
Please see the code.
$w.onReady(() => {
wixData.query("#dynamicDataset1")
.count()
.then((num) => {
let url = $w("#button1").link;
if (url === "") {
$w('#button1').collapse();
}
})
.catch((error) => {
let errorMsg = error.message;
let code = error.code;
});
});
Hello again,
i think this video will help you to understand a little bit more about how to work with them....
How to pick-up some of repeated elements....
$w("#myRepeater").forItems( ["item1", "item4"], ($item, itemData, index) => { $item("#repeatedImage").src = itemData.img; $item("#repeatedText").text = itemData.description; } );