How to Create Minutes, Seconds, and Milliseconds Fields in Adobe Acrobat
Question details
The user needs a way to create form fields in Adobe Acrobat that format and calculate minutes, seconds, and milliseconds.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Designing a professional PDF form that requires precise time inputs and automatic total calculations for durations.
- Observed behavior
- Acrobat form fields lack a built-in time format for minutes, seconds, and milliseconds, preventing automatic calculation and validation out of the box.
Ensure you have Adobe Acrobat Pro installed, as standard PDF readers do not support editing form fields or adding custom JavaScript calculations.
Use Custom JavaScript for Form Field Formats and Calculations
Since Acrobat lacks built-in support for precise sub-second time formatting, you must apply custom JavaScript to handle the format, validation, and calculation of these fields.
Adobe Acrobat relies on custom JavaScript to handle complex formatting and mathematical logic that goes beyond its native number and date formats. You will need to write scripts for keystroke behavior, format conversion, and calculating totals.
The script must convert each entered value into a consistent numeric duration (such as total milliseconds), validate the minutes, seconds, and milliseconds, and then push the calculated total into a designated outcome field.
Launch Adobe Acrobat Pro, go to the 'Tools' menu, and select 'Prepare Form' to enter the form editing mode.
Create the text fields where users will input their time values. Right-click the newly created field and choose 'Properties'.
In the Properties dialog, navigate to the 'Format' tab, choose 'Custom' from the Select format category drop-down, and enter your custom JavaScript to enforce the mm:ss:ms format.
For the total field, go to the 'Calculate' tab, select 'Custom calculation script', and write a JavaScript function that sums the numeric duration of the specific input fields.
Click 'Preview' or exit the form editing mode. Input test values into your fields to ensure the JavaScript validation and calculations execute flawlessly.

Create and Manage PDF Forms Easily with WPS Office
WPS Office provides robust and user-friendly PDF editing tools, allowing you to easily insert text fields, customize form properties, and manage interactive PDF documents.
- 1. Open your PDF in WPS Office: Launch WPS Office and open your existing PDF document or create a new one.
- 2. Access the Form features: Navigate to the 'Form' tab in the top ribbon menu to view all available interactive form editing options.
- 3. Add text fields: Click on 'Text Field' in the toolbar and drag across your document to draw the input fields for your users.
- 4. Customize form properties: Double-click the inserted field to open the properties panel, where you can adjust font size, alignment, and basic formatting constraints.

Frequently Asked Questions
Does Adobe Acrobat have a built-in time format for milliseconds?
No, Acrobat's built-in time formats only go down to seconds (e.g., HH:MM:SS). To format and calculate milliseconds, you must use custom JavaScript.
Why isn't my PDF form calculation updating automatically?
Ensure that you have enabled automatic calculations in Acrobat's preferences. Go to Edit > Preferences > Forms, and verify that 'Automatically calculate field values' is checked.
Can I copy calculation scripts from one PDF field to another?
Yes, you can copy the JavaScript code from the 'Calculate' tab of one field's properties and paste it into another, provided the field names referenced in the code match your document's structure.




