Is there a way to wait for blur on field before continuing loop?
I'm trying to program a button to check required fields in a form. The goal is to walk the user through the fields that need attention. Right now it jumps to the field and highlights it. I want it to wait for the user to enter data before removing the highlight and jumping to the next field. Can someone show me a way to implement this?
for (var i = 0; i < this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f.type != "button" && f.required && f.value == "") {
f.setFocus();
f.fillColor = color.yellow;
// Wait for user to enter something in f
f.fillColor = color.transparent;
}
}
