I have a database that inserts from the form on the published website.
And the database can fix anyone on the published website.
The form and The fix form have a checkbox.
When the checkbox checked, The button appears.
If the checkbox unchecked, the button disappears.
Up to this point, it works fine.
Once The checkbox checked, cannot hide the button even change the database.
How can I hide after change the database?
my code is:
$w.onReady( function () {
$w( “#repeater1” ).onItemReady( ($w, itemData) => {
console.log(itemData.pdf);
if (itemData.pdf === undefined ){
$w( “#button1” ).hide();
}
if (itemData.labelnew1 === undefined ){
$w( “#button3” ).hide();
}
if (itemData.labelbukken === undefined ){
$w( “#button4” ).hide();
}
});
});