Javascript action on button not working in reader mobile
I have a proceedures checklist using checkboxes, most of which are required. At the end of the list i placed a button to verify that all required checkboxes were checked. It works great on PC but nothing happens on android. I am SO NEW to java and its awe-inspiring powers and would love to get this simple feature working...I'm sure I'm just missing something blatantly obvious to experts...
The button triggers on Mouse Up
This is the script to run:
var emptyFields = [];
for (var i=0; i<this.numFields; i++) {
var f= this.getField(this.getNthFieldName(i));
if (f.type!="button" && f.required ) {
if (f.valueAsString==f.defaultValue) emptyFields.push(f.name);
}
}
if (emptyFields.length>0) {
app.alert("Please complete the following pre-trip checks:\n\n" + emptyFields.join("\n"));
}
