Conditionally disable button
Posted: 16 Dec 2016
I am trying to make a button disable when the status field is Completed, I found this tread :
viewtopic.php?f=1&t=403
and here is my code:
function ButtonDisable() {
if (fd.field('Satus').value() == 'Completed') {
$('.approve-button').prop('disabled', true);
} else {
$('.approve-button').prop('disabled', false);
}
}
fd.field('Satus').change(ButtonDisable);
ButtonDisable();
but it is not working L
viewtopic.php?f=1&t=403
and here is my code:
function ButtonDisable() {
if (fd.field('Satus').value() == 'Completed') {
$('.approve-button').prop('disabled', true);
} else {
$('.approve-button').prop('disabled', false);
}
}
fd.field('Satus').change(ButtonDisable);
ButtonDisable();
but it is not working L