Adding JavaScript to forms

The JavaScript language lets you create interactive web pages. Adobe has enhanced JavaScript so that you can easily integrate interactivity into PDF forms. The most common uses for JavaScript in Acrobat Professional forms are formatting, calculating, validating data, and assigning an action. In Windows, you can also configure Adobe PDF forms to connect directly to databases using Open Database Connection (ODBC). For more information, see the Acrobat JavaScript Scripting Reference on the JavaScript support page (English only) of the Adobe website.

Note: If you’re creating dynamic forms, keep in mind that Adobe Reader doesn’t support some custom JavaScripts, so the form may not function properly when viewed in Reader unless additional usage rights are added to the PDF.

For information on customizing Acrobat, see the Acrobat Software Development Kit (SDK). The Acrobat SDK is provided to members of the Adobe Solutions Network (ASN) Developer Program. For information on this SDK, visit the Adobe Acrobat SDK page (English only) on the Adobe website.