How to Set Less Than or Greater Than Rules in PDF Form Calculations
Question details
The user needs to set up rules in a PDF form to compare field values, such as requiring one field to be less than or greater than another, and wants to know if Simplified Field Notation can handle this.

- Product
- PDF Forms
- Device & OS
- not provided
- Scenario
- Creating an interactive PDF form where field values are validated or calculated based on comparisons with target amounts or other specific field values.
- Observed behavior
- Simplified Field Notation is limited to basic arithmetic and does not support less-than or greater-than logical comparisons.
Verify the exact names of the form fields you intend to compare and ensure your PDF editing software supports advanced form field properties and custom calculations.
Use the Built-in Minimum or Maximum Calculation
This is the easiest method to establish a comparison between values without writing custom code, effectively mimicking a greater-than or less-than limit.
Since Simplified Field Notation cannot process logical operators like < or >, you can leverage the built-in 'Value Is' calculation options. By setting a field to evaluate the Minimum or Maximum of two fields, the software automatically restricts the output to meet your comparison rules.
Right-click the target text field in your PDF form editor and select 'Properties' from the context menu.
In the Properties dialog box, click on the 'Calculate' tab to view the calculation options.
Check the radio button for 'Value is the' and choose either 'Minimum' or 'Maximum' from the adjacent dropdown menu, depending on your logical requirement.
Click the 'Pick' button and select the specific fields you want to compare (e.g., your input field and the target asset field), then close the dialog to apply the rule.

Create a Custom Calculation Script
Use this method if your form requires more complex logical conditions that cannot be solved by simple minimum or maximum evaluations.
Create and Manage PDF Forms Seamlessly with WPS PDF
WPS Office provides a robust PDF editor that allows you to effortlessly design interactive forms, insert text fields, and manage document properties without requiring advanced technical skills.
- 1. Open Your PDF Document: Launch WPS Office and open the PDF file you wish to convert into an interactive form.
- 2. Access Form Tools: Navigate to the 'Form' tab in the top ribbon to reveal all interactive field insertion options.
- 3. Edit Field Properties: Insert a text field, then double-click it to access the properties menu where you can configure field rules and calculations.

Frequently Asked Questions
Why can't I use less than or greater than symbols in Simplified Field Notation?
Simplified Field Notation is strictly designed for basic arithmetic. It only supports addition, subtraction, multiplication, and division (+, -, *, /). It does not have the capability to process logical operators like greater than (>) or less than (<).
What happens if I use the 'Minimum' calculation in a PDF form?
When you use the 'Minimum' calculation option on two or more selected fields, the PDF software evaluates the inputs and automatically displays the lowest numerical value among them in the calculated field.
Do I need to know JavaScript to set up basic conditional limits in a PDF?
No, you do not need JavaScript for basic limits. You can use the built-in 'Value Is' options (like Minimum or Maximum) to enforce simple conditional boundaries without writing any code.




