0
Help to write a custom validation script
New Here
,
/t5/acrobat-discussions/help-to-write-a-custom-validation-script/td-p/15102335
Jan 20, 2025
Jan 20, 2025
Copy link to clipboard
Copied
I have a form field that is a measurement entered as a character string.
The proper format is inches followed by eighths of an inch (i.e. 13 3/8).
I would like to validate that:
- the inches are a whole number between 1 and 30
- the numerator of the fraction is between 0 and 7
- the '/' exists
- and the denominator is 8
How would I write that in a custom validation script?
Thank you in advance for your help!
TOPICS
How to
,
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/help-to-write-a-custom-validation-script/m-p/15102975#M493418
Jan 21, 2025
Jan 21, 2025
Copy link to clipboard
Copied
I would strongly recommend using two text fields for this, one for the inches and another for the numerator of the fraction. The rest should be static text. It will make validating the user input much easier.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

