© Jennifer Harder 2017

Jennifer Harder, Enhancing Adobe Acrobat DC Forms with JavaScript, https://doi.org/10.1007/978-1-4842-2893-7_7

7. Format Calculations

Jennifer Harder

(1)Delta, British Columbia, Canada

In this chapter, you’ll be working with Number, Percentage, Date, and Time formats using simplified field notation (SFN) and Value. Let’s look at where it works and doesn’t. You’ll also need some JavaScript to assist you.

Like in Microsoft Excel (see Figure 7-1), sometimes you must work with different formats of numbers; you don’t always deal with just 1+1. Other formats you might encounter are

  • Percentage (98%)

  • Date (June 25, 2014)

  • Time (8:30 am)

Figure 7-1. Formatting cells in MS Excel

The same is true when you work in Acrobat.

Text fields and dropdown ...

Get Enhancing Adobe Acrobat DC Forms with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.