PDF Editing Issues

How to Use Fields with Decimals in Acrobat Simplified Field Notation

Algirdas JasaitisAlgirdas Jasaitis Nov 24, 2026 868 views

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.

How to Use Fields with Decimals in Acrobat Simplified Field Notation
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.
Before you start

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.

Solution 1Recommended

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.

1
Access field properties

Open the 'Prepare Form' tool, right-click the target field where the calculation will display, and select 'Properties'.

2
Open calculation editor

Navigate to the 'Calculate' tab, select the 'Simplified field notation' option, and click the 'Edit' button.

3
Enter the escaped field name

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').

4
Save and test

Click 'OK' to save your script, close the properties window, and test your form to ensure the calculation processes correctly.

Escape Periods Using a Backslash
Alternative Approach: If your form contains many fields with special characters, selecting 'Custom calculation script' instead and using standard JavaScript (e.g., this.getField('income.1').value) may be easier, as it handles strings natively without requiring backslashes.
Powerful PDF Editor

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. 1. Open your PDF: Launch WPS Office and open your PDF document containing the form.
  2. 2. Navigate to form tools: Go to the 'Form' or 'Edit' tab on the top ribbon to interact with document fields.
  3. 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.
Easily view, edit, and fill interactive PDF form fieldsSeamless compatibility with Adobe PDF and Microsoft Office formatsUser-friendly interface for managing text, images, and document layoutsFree and lightweight alternative for daily document productivity
QA img-9

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.