How to Use Fields with Decimals in Acrobat Simplified Field Notation
Question details
The user needs a way to perform calculations on PDF form fields that contain periods or decimals in their names without renaming every existing field.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or modifying form calculations using Simplified Field Notation in a PDF document.
- Observed behavior
- Acrobat misinterprets field names with periods as JavaScript syntax errors unless the characters are correctly formatted.
Ensure your PDF document is opened in Adobe Acrobat's Prepare Form mode and take note of the exact names of the fields you intend to include in your calculation.
Escape Periods Using a Backslash
Use a backslash to escape the period or decimal in the field name, preventing Acrobat from interpreting it as a syntax error.
In Adobe Acrobat's Simplified Field Notation, periods (decimals) are typically processed as JavaScript object operators. To reference a field name like 'income.1' without renaming it, you must escape the period so the notation engine treats it as a standard text character within the field name.
Open the 'Prepare Form' tool, right-click the target field where the calculation will display, and select 'Properties'.
Navigate to the 'Calculate' tab, select the 'Simplified field notation' option, and click the 'Edit' button.
In the script window, input your formula. Place a backslash before any periods in your field names (for example, type 'income\.1' instead of 'income.1').
Click 'OK' to save your script, close the properties window, and test your form to ensure the calculation processes correctly.

Edit and Manage PDF Forms Easily with WPS Office
WPS Office offers a comprehensive PDF editor that allows you to view, fill, and manage interactive PDF forms effortlessly. Whether you need to modify documents or input data, WPS Office provides a streamlined experience.
- 1. Open your PDF: Launch WPS Office and open your PDF document containing the form.
- 2. Navigate to form tools: Go to the 'Form' or 'Edit' tab on the top ribbon to interact with document fields.
- 3. Fill and modify: Click directly on the fields to input data or use the editing tools to modify the document text and layout as needed.

Frequently Asked Questions
Why does Acrobat throw a syntax error when my field name has a decimal?
Because Simplified Field Notation is built on top of JavaScript, Acrobat treats the period as an object property separator. If it is not escaped, the system tries to find a property rather than reading the literal field name, causing a syntax error.
Can I use standard JavaScript instead of Simplified Field Notation?
Yes. In the Calculate tab, you can select 'Custom calculation script' instead. This allows you to use standard JavaScript, where you can reference fields inside quotes (e.g., this.getField('income.1').value), which naturally bypasses the decimal issue.
Does this backslash rule apply to other special characters in field names?
Yes, if your field names contain other mathematical operators or special characters like hyphens, spaces, or plus signs, they may also confuse the Simplified Field Notation engine and either need to be avoided or correctly handled using standard JavaScript.




