Acrobat script which recognizes how to differentiate a gender from an alphanumeric number
Hi, I'm verry new to script, and it's the first time I'm trying to build a form on Acrobat Pro with some required information.
I use an alphanumeric id which is made of 4 letters and 8 digits, built like:
- First three letters of last name First letter of first name;
- Digits represent YY MM DD and 2 administrative numbers.
- Female see month added of 50, so;
- January = 51 to December = 62
- Examples: John Doe born January 20th, 1988 would be DOEJ 8801 2013
- Sarah Andrews born October 13th, 1990 would be ANDS 9061 1312
I'm unsure how to deal with the yy of Y2K, but I could deal with it after (I guess it's in the 2 last digits, but cannot see any difference in numbers of 19' and 20' subject ID number..)
I was able to extract date of birth (dob) from male subject with a script inspired from try67 older post's:
I'd like to be able to extract female (dob), even if the month value is 50 more... It would also be awesome to be able to use the 0-1(M)/5-6(F) value of the ID's 6th digit to fill a dropdown box with Male or Female choice.
I've red a lot of post, watch tutos, but could'nt find any answer.. may I please ask someone a little help 🙂
Thanks,
David.
