Require a letter-and-number pattern in a PDF form
By PDF Bop · Published
Open Field Properties → Format and choose a Special format with an arbitrary mask. Define the combination of letters, digits, and fixed characters the form requires.
Test the pattern where people will fill the form
- In Prepare a form, select a single-line text field and set the mask. For example, use
AA-9999to guide entry of two letters, a hyphen, and four digits. - Put an example such as AB-4720 beside the field or in its tooltip.
- Save, reopen, and test an acceptable entry and one with the sections reversed.
We saved AB-4720 and the form’s fill action refused 12-ABCD. A mask controls the shape of the input. If the code must exist in a registry, verify that separately when processing responses.