How to Set a Custom Maximum Value in PDF Form Fields
Question details
The user needs to restrict the input of a PDF form field to a specific, configurable maximum value so that end users cannot enter numbers or dollar amounts above a permitted limit.

- Product
- Adobe Acrobat / PDF Editors
- Device & OS
- not provided
- Scenario
- Creating or configuring an interactive PDF form that requires strict numeric data entry limits.
- Observed behavior
- The current PDF form field accepts any dollar amount without restricting the entry to the required maximum limit.
Ensure you have access to a PDF editing program that supports modifying interactive form field properties and verify the exact maximum numeric or dollar amount you wish to enforce.
Use Built-in Range Validation Settings
The simplest and most reliable method for setting a maximum value is utilizing the native 'From' and 'To' range validation settings within the form field properties.
This method is highly recommended for standard fixed-range limits. It is native to most PDF viewers, meaning it has a higher chance of working properly across different devices and mobile PDF readers compared to custom scripts.
Right-click the specific text or number field in your PDF form editor and select 'Properties' from the context menu.
Navigate to the 'Format' tab first. Under the 'Select format category' dropdown, choose 'Number'. This ensures the validation will treat the input as a numerical value.
Switch to the 'Validate' tab. Select the option labeled 'Field value is in range'. Enter your minimum accepted value in the 'From' box and your desired maximum limit in the 'To' box.
Click 'Close' to save the properties. Preview the form and attempt to enter a value higher than the maximum to ensure the validation warning appears.

Apply Custom JavaScript for Configurable Maximums
If your maximum value needs to be dynamic or if you want to display a highly customized alert message, you can apply a custom JavaScript validation script.
Easily Manage and Edit PDF Forms Using WPS PDF
WPS Office offers a powerful, lightweight PDF editor that allows you to easily view, fill, and modify PDF documents and forms natively without relying on heavy or expensive software.
- 1. Download and Install: Download and open WPS Office, then click on the 'PDF' tab from the main workspace.
- 2. Open Your Form: Click 'Open' to import your existing PDF form document into the editor.
- 3. Access Form Tools: Navigate to the 'Form' tab on the top ribbon to access interactive form field tools and editing options.
- 4. Edit or Fill the Field: Select the relevant text field to modify its properties or fill in the required numeric data.
- 5. Save Changes: Click the 'Save' icon to securely save the completed or edited PDF form directly to your device.

Frequently Asked Questions
Why is my PDF form field not validating the entered amount?
Validation may not work if the field format is not explicitly recognized as numerical. Ensure the 'Format' tab in the field's properties is set to 'Number' before applying your minimum and maximum validation ranges.
Can I set a maximum value without forcing a minimum value?
Yes. If you only need to enforce a maximum limit using the built-in validation, you can set the 'To' value to your desired maximum and leave the 'From' value as a very low number (like 0 or a negative number) to effectively only restrict the upper limit.
Does custom JavaScript validation work on mobile PDF viewers?
Not all mobile PDF viewers or web browser extensions support JavaScript execution. If users will fill out the form on mobile devices, it is highly recommended to use the built-in 'From' and 'To' validation settings for maximum cross-platform compatibility.




