Format a Height Input as Feet and Inches in Adobe Acrobat
Question details
Format a numeric height entry such as 509 as 5' 09" in a PDF form without using drop-down fields.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A PDF form uses a text field to collect a three-digit height in feet and inches.
- Observed behavior
- The desired display is a formatted height with a foot mark, a space, two inch digits, and an inch mark.
Open the PDF in Adobe Acrobat and confirm that you can edit its form fields. Identify the text field that will receive the three-digit height input.
Apply a height format mask to the text field
Use an arbitrary mask to add foot and inch marks without creating drop-down fields.
In Acrobat, open the PDF and select All tools > Prepare a form.
Double-click the height text field, or add a text field and then open its Properties.
On the Format tab, choose Special, select Arbitrary Mask, and enter 9' 99" as the mask. The 9 characters represent digits.
Close Properties, select Preview, and enter 509 in the field. Check that it displays as 5' 09".

Format the height with Acrobat JavaScript
Use a custom format script if the mask does not produce the expected display.
Work with PDFs and Office documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office formats, making it easy to move documents between applications. Use its PDF tools for everyday document work; the Acrobat-specific form mask above must be configured in Acrobat.

Frequently Asked Questions
Can I format the height without a drop-down field?
Yes. In Acrobat's Prepare a form tool, open a text field's Properties and set an arbitrary mask on the Format tab.
How do I include a space between the feet and inches?
Enter 9' 99" as the arbitrary mask. The space after the foot mark is part of the displayed format.
Does the mask prevent someone from entering 5 feet 99 inches?
Not necessarily. The mask sets the digit pattern and punctuation; use separate validation if inches must be between 00 and 11.
Where do I add a custom format script in Acrobat?
In Prepare a form, open the text field's Properties, select the Format tab, choose Custom, and open the Custom Format Script editor.




