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:
How would I write that in a custom validation script?
Thank you in advance for your help!
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.