Tab Function Losing Place in Document After Validation Script
I'm running JavaScript validations on form fields to show and hide follow on fields based on user input from the dropdown menu. The problem I'm having is that if the user confirms the value using Tab, the cursor gets lost on the document and starts over at the first field instead of continuing to the next field beyond the now hidden field. I tried using getNext to no avail. The dropdown defaults to a blank space so it could be printed as a blank form, followed by a checkmark, an "X", and finally a "/". Selecting "/" identifies that the subfields are not required and while the user could simply tab through them, I'm trying to make it easier on the user. Any help would be appreciated. Here's a sample of the code:
if (event.value == " /") {
this.getField("EGI GROUND CHECK").display = display.hidden;
goNext(this, event, "BEFORE 7");
}
else {
this.getField("EGI GROUND CHECK").display = display.visible;
goNext(this, event, "EGI GROUND CHECK");
}
