Autotabbing fields that are set to only accept numbers (not letters)
- October 17, 2019
- 1 reply
- 3830 views
Hello,
Disclaimer: I'm learning as I go, am not super technical and I'm sure there are better ways to do what I am trying to. Open to input but remember I am not skilled with Acrobat so patience please!
I am trying to do two things with my PDF form: have fields autotab, and also be limited to only 1 number per field.
At the moment, I have the autotabbing working, however I cannot seem to set the fields to be number only. I think this is because I have the autotabbing code set the FORMAT > Custom Keynote Script area:
// Autotab to the "P1: 3. HSBC 2" field tab_next("P1: 3. HSBC 2");
If I try setting the field to be a number only, in FORMAT > Number it removes what I have set in the custom area for the autotabbing.
I also have this javascript added in the ACTIONS tab:
// Document-level function function tab_next(next_field_name) { // Move to next field if Enter key is pressed // or the user has clicked outside of the field // or if the number of character is the character limit if (event.willCommit || AFMergeChange(event).length === event.target.charLimit) { getField(next_field_name).setFocus(); } }
If I could just get the individual fields to only show 1 number and still autotab then I would be one happy camper! Appreciate any help... thank youo in advance.