Creating Form Fields Programmatically - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Using Acrobat JavaScript in Forms
4
Creating form fields programmatically
Document Did Save runs the JavaScript after the document is saved.
Document Will Print runs the JavaScript while the document is printed.
Document Did Print runs the JavaScript after the document is printed.
3. Click Edit. A JavaScript editor appears (you can set a default JavaScript editor in the
Preferences dialog box).
4. Enter your code into the editor and click OK. If you are using an external editor, follow
the editor's instructions. You will have to save your code and close the editor window
before returning to Acrobat. The code is entered into the Execute this JavaScript section
of the dialog box, and a green circle appears next to the occurrence to show that a
JavaScript action is set for it.
5. Click OK.
To delete a document level JavaScript action:
1. Choose Advanced > JavaScript > Set Document Actions.
2. In the Document Actions dialog box, choose the document occurrence whose
JavaScript you want to remove.
3. Click Edit.
4. In the JavaScript editor, delete the code and click OK.
5. Click OK to close the Document Actions dialog box.
To edit all document level JavaScript actions:
1. Choose Advanced > JavaScript > Set Document Actions.
2. Click Edit All. All scripts for the file will appear. Select the document level scripts.
3. Edit the code in the editor, then click OK.
4. In the dialog box, click OK.
Creating form fields programmatically
Acrobat provides a large number of JavaScript properties and methods for creating form
fields and setting their appearance and associated actions, if any. This section presents
these properties and methods, organized following the Acrobat user interface (UI). If you
create a prototype of your form fields using the Forms toolbar and the Properties dialogs in
the Acrobat UI, you can then use this section to find the corresponding JavaScript
properties and/or methods.
62
Acrobat JavaScript Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents