How to Display AM and PM in Uppercase in Adobe Acrobat Forms
Question details
The user needs to display time fields in a PDF form with uppercase AM/PM instead of the default lowercase am/pm.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Setting up time fields in an interactive PDF form using standard time formats like h:MM tt.
- Observed behavior
- The standard formatting interface outputs lowercase 'am' and 'pm', which does not meet the user's specific capitalization requirements.
Ensure you have access to the 'Prepare Form' tool in your PDF editor and that your document permissions allow adding or modifying form fields and JavaScript.
Use a Custom Format Script in Acrobat
Apply a simple custom JavaScript to the time field's properties to automatically convert the entered time's am/pm indicator to uppercase.
Because Acrobat's default time format (using the 'tt' parameter) usually renders lowercase letters, bypassing the standard interface with a custom script is the most reliable method.
Open your PDF document in Adobe Acrobat, navigate to the Tools menu, and select the 'Prepare Form' option.
Right-click the specific time text field you want to modify and select 'Properties' from the context menu.
Navigate to the 'Format' tab. Under 'Select format category', choose 'Custom' from the dropdown list.
In the 'Custom Format Script' box, enter a script that converts the output to uppercase. For example, if your field evaluates as a string, you can use: event.value = event.value.toString().toUpperCase();

Create and Manage Interactive PDF Forms with WPS PDF
WPS Office includes a robust PDF editor that allows you to seamlessly create, fill, format, and sign PDF forms. It provides a highly intuitive interface for handling text fields without constantly relying on complex scripting.
- 1. Open your PDF: Launch WPS Office and open your existing PDF document.
- 2. Navigate to Form Tools: Click on the 'Form' tab in the top ribbon to access all interactive form creation and editing tools.
- 3. Adjust Field Properties: Double-click any text or time field to open the properties panel, where you can easily adjust formatting and text appearance.
- 4. Save the Document: Save your edited PDF, which will remain universally compatible with all standard PDF readers.

Frequently Asked Questions
Why does Acrobat default to lowercase am and pm?
By default, the built-in JavaScript engine in Acrobat uses standard system time formatting conventions for the 'tt' format parameter, which traditionally outputs lowercase am/pm in the form interface.
Can I simply type 'TT' instead of 'tt' in the format settings?
Unfortunately, capitalizing the 'tt' parameter in the Acrobat time format window usually does not force the output to uppercase. Custom JavaScript is required to guarantee uppercase formatting.
Will custom JavaScript work on mobile PDF readers?
Custom JavaScript in PDF forms is widely supported on desktop applications, but many mobile PDF viewers and web browsers lack full JavaScript support, meaning the uppercase formatting may not apply on mobile devices.




