when text field length = 4, go to the next text field
Hi,
I am preparing a form in Adobe Acrobat Pro DC,
I am trying to format my text fields, currently, I have 4 text fields each with a character limit of 4, and when that limit is reached then I want the user to automatically be moved into the next text field.
I have tried using the following javascript in the custom keystroke script:
if (event.value.length = 4) {
getField("txb2").set Focus();
}
Although this isn't working as after I enter 1 character I am then directed to the next field.
I want to be able to type 4 characters in a text field, then to go to the next text field automatically.
If someone can please help me out, that would be greatly appreciated.
Thanks
