i want to use javascript in a .pdf file. I want to check if a string starts with "1" or with a letter.
If the string starts with "1" i want to check the length of the string. If the string is 18 chars long, then i want to call my own created function. If the String is shorter than 18 chars i want to display a message.
If the string starts with a letter, i want to check the length of the string. If the string is 11 chars long, then i want to call my own created function. If the String is shorter than 11 chars i want to display a message.
But how i can do this?