How to use division in PDF forms

By December 13, 2011


There are several different ways to perform math functions within fillable PDF form fields in Acrobat X or XI. In this quick tip, you'll learn how to perform the math function for division in fillable PDF forms.

View transcript

How to use division in PDF forms

Lori KassubaDecember 13, 2011

There are several different ways to perform math functions within form fields in Acrobat. To show you these, I’ll enter form field edit mode in Acrobat X, by opening up the Tools pane, Forms panel, and clicking on the Edit menu. My AmountSubtotal field is a predefined calculation. So when I open up the Form Field Properties dialog and select the Calculate tab, you can see the predefined types of calculations. In this case I’m using the sum calculation for my sub-total field. However, if you need to divide certain types of form fields, you’ll need to either use Simplified Field Notation or JavaScript. I’ll review how you can use Simplified Field Notation to perform division. Simplified Field Notation is just a scripting language based on a syntax that's similar to the formulas that are written in spreadsheet programs.

So, to perform division, I’ll open up the Properties dialog of my SalesTax field, click on the Calculate tab, select the Simplified field notation radio button, and select Edit. In this case I’ll enter the fieldname AmountSubtotal multiplied by 6 and divided by 100. This is the sales tax amount in Michigan. Then, when I close the Properties dialog and click the Preview button, you can see the automatic calculation of the sales tax.

You cannot use hierarchical field names or spaces when using Simplified Field Notation. And be careful because division by zero can result with an answer like NaN - Not a Number or Infinity. You may also want to consider using a custom JavaScript calculation to avoid the Not a Number issue.

Was this tutorial helpful?

Please Log in to provide feedback on this tutorial.

Rate this tutorial

Please Log in to rate this tutorial.


Did you know?

  • You can ask a question and get an answer from one of our experts.
  • You can search our database of over 800 tutorials by product and/or topic.
  • You can leave a comment below for the author of this tutorial.

Products covered:

Acrobat X Pro

Related topics:

Create and analyze forms

Top Searches:

HTML forms, Online forms, Web forms, Online form builder


Leave a reply:

Commenting is not available in this channel entry.

Acrobat XI trial

Get the trial now

Learn how to
edit PDF.

Get started