PDF Editing Issues

How to Display AM and PM in Uppercase in Adobe Acrobat Forms

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 868 views

Question details

The user needs to display time fields in a PDF form with uppercase AM/PM instead of the default lowercase am/pm.

How to Display AM and PM in Uppercase in Acrobat PDF Forms
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Prepare Form

Open your PDF document in Adobe Acrobat, navigate to the Tools menu, and select the 'Prepare Form' option.

2
Access Field Properties

Right-click the specific time text field you want to modify and select 'Properties' from the context menu.

3
Set Custom Format

Navigate to the 'Format' tab. Under 'Select format category', choose 'Custom' from the dropdown list.

4
Add JavaScript

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();

Use a Custom Format Script in Acrobat
Handling Date-Time Values: If your field requires strict date-time object validation, you may need a more advanced keystroke or validation script that specifically targets and replaces 'am' with 'AM' and 'pm' with 'PM' without breaking the date object.
Effortless PDF Form Management

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. 1. Open your PDF: Launch WPS Office and open your existing PDF document.
  2. 2. Navigate to Form Tools: Click on the 'Form' tab in the top ribbon to access all interactive form creation and editing tools.
  3. 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. 4. Save the Document: Save your edited PDF, which will remain universally compatible with all standard PDF readers.
Easily create, format, and fill PDF form fields natively.Fully compatible with standard Adobe PDF forms and properties.Lightweight, fast-loading alternative to heavy PDF editors.Includes comprehensive tools for editing PDF text, images, and pages.
QA img-9

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.