Why should prospective readers care about your hero? Will he sound any different from the other characters in the story? What kind of goals did he have before becoming a superhero? To start, we create a text field and bring up the properties dialog for the field.Then we select the “Validate” tab to see the validation options: The default is that the field will not get validated. What would the consequences be if his enemies, friends and/or the public found out who he is? How do his powers make it harder (or easier) to keep his secret-identity secret? Has his work as a superhero noticeably changed his body? (Not that there’s anything wrong with the subway, but you do get weird stares). Will he be able to resolve his problems in new and fresh ways?Let’s take a look at how to do that with a text field that is only supposed to have a value of either ‘AAAA’ or ‘BBBB’ (yes, I know that this does not make much sense in a real PDF form).So, if the user enters ‘01234’ we should see an error message that would instruct the user about what type of data is valid for this field.
Less obviously, will your readers be able to describe your character’s powers in 1-2 easy sentences?
One of the questions I get asked again and again is how to validate a field value in an Acro Form with a custom validation script.
Adobe provided a lot of infrastructure to do that with just a simple script.
Another thing I like to do is to display the validation error message on the form in an otherwise hidden field: The problem with our last solution is that if the user saves a partially filled form, and picks it up at a later time, that error message that popped up is long gone, and the only indication that there is something wrong with the form is the modified field color.
So, having a text field contain that error message might be a good idea.