
Using Help
|
Contents
|
Index
Back
154
Adobe Acrobat Help
PDF Forms
Using Help
|
Contents
|
Index
Back
154
Range validation is available only for form fields that use number or percentage formats.
(See
“Setting format options” on page 153
.)
•
To use a custom validation script, select Custom Validate Script, and click Edit. Copy and
paste a predefined script into the editing area, or enter the script directly; then click OK.
You must click Edit in the Field Properties dialog box to enter or modify the script; you
cannot edit the script that appears in the preview area. For more information, see
“Using
custom JavaScripts in forms” on page 164
.
Setting calculation options
The calculation options let you perform mathematical operations on two or more existing
form field entries and display the result. You can use the common operations predefined
in the Field Properties dialog box, or you can define more complex operations using a
custom JavaScript. For more information, see
“Using custom JavaScripts in forms” on
page 164
, or choose Help -> Forms JavaScript Guide to display the
Acrobat JavaScript
Object Specification
.
When you define two or more calculations in a form, the order in which these calculations
are carried out is the same as the form fields’ tab order. In some cases, you may need to
change this default calculation order to obtain the correct results. For example, if you
wanted to use the result obtained from calculating two form fields to calculate the value
of a third form field, the first two form fields must be calculated first to obtain the correct
final results. Acrobat automatically performs all assigned field calculations when you are
creating and testing your form fields. For convenience, you can turn off this automatic
calculation while you work.
To specify form field calculation options:
1
Select either Text or Combo Box in the Field Properties dialog box, and click the
Calculate tab.
2
Do one of the following:
•
To define the form field without calculation properties, select Value Is Not Calculated
(default).
•
To define the form field as a simple calculation result, select Value is the <operation> of
the Following Fields, and select an operation from the menu. Click Pick to bring up the
Select a Field dialog box, and select the form fields you want to calculate. Click Done
when you have finished selecting form fields.You can also enter the case-sensitive form
field names directly in the text box (beneath the Value is the radio button), separating
the names with commas.
Simple calculations are available only for form fields that use number or percentage
formats. (See
“Setting format options” on page 153
.)
•
To use a custom calculation script, select Custom Calculation Script, and click Edit. Copy
and paste a predefined script into the editing area, or enter the script directly; then click
OK.
You must click Edit in the Field Properties dialog box to enter or modify the script; you
cannot edit the script that appears in the preview area. For more information, see
“Using
custom JavaScripts in forms” on page 164
.