This is the code I am using, where am I going wrong because the button appears to be unaffected.
$w.onReady( function () {
let remainingnos = (“#remainingnumber ”).value;
if (Number(remainingnos) > 0) {
$w(“#buttonStart ”).enable();
$w(“#startmessage ”).show();
} else {
$w(“#buttonStart ”).disable();
$w(“#startmessage ”).hide();
}
})
J.D
June 18, 2019, 11:06pm
2
What is (" #remainingnumber “).value ?
Do you mean $w (” #remainingnumber ").value ?
Changed it but nothing still happened.
J.D
June 18, 2019, 11:53pm
4
So after the change, this code is fine, and the problem is somewhere else. Maybe the property id’s are wrong or something else. It’s not the code itself.
Thank you for your help, you were right!