I want to give my customers the option of inputting mm/yyyy OR yyyy OR mm/dd/yyyy on the adobe pdf fillable form when I send it to them but am having trouble making this work.
Does anybody know how to do this?
I would suggest the following
1. use a keystroke event to authorize only digits and the "/" character
2. Test the length property (7, 4 or 10) to determine the format chosen by the user
3. if the result is 7 or 10, Try to convert the string to a date Object to reject any value that is not a valid date
This seems like a very unusual requirement.