I have a problem in using checkbox in ProcessMaker 4. In version 3 I had this code:
$("#amount").setOnchange(function(newValue, oldValue) {
$('#myCheckbox').show();
var amount2 = $("#amount2").getValue();
if(newValue >= amount2){
$("#myCheckbox").setValue("1");
}
else{
$("#myCheckbox").setValue("0");
}
});
how can I implement this in version 4?