
Using Help
|
Contents
|
Index
Back
149
Adobe Acrobat Help
PDF Forms
Using Help
|
Contents
|
Index
Back
149
You can assign a custom action that is activated when a user switches between items in a
list box. For example, you can play a sound or display an image as the user changes selec-
tions. You define the list box actions using custom JavaScripts. For information, see
“Using
custom JavaScripts in forms” on page 164
, or choose Help > Acrobat JavaScript Guide to
display the
Acrobat JavaScript Object Specification
.
A combo box
To create a combo box:
1
Create a form field, as described in
“Creating form fields” on page 145
, and select
Combo Box from the Type menu of the Field Properties dialog box.
2
Click the Options tab.
3
Enter a name in the Item field. Items should be no longer than 100 characters.
4
Enter an export value (optional) to represent the chosen item if it is exported to a CGI
application. (See
“Defining CGI export values” on page 163
.) If no export value is entered,
the item name is used as the exported value.
5
Select Add, and continue to enter items and export values until the list is complete. Lists
should be no longer than 50 items.
6
You may also select from the following options:
•
To sort the items numerically and alphabetically, select the Sort Items option. A numeric
sort (if applicable) is performed before an alphabetical sort.
•
To allow user editing of the list, select the Editable option.
•
To move an item one position up or down in the list, select the item, and click the Up or
Down button. This option is not available if the Sort Items option is selected.
7
Click the Format tab, and choose a category type from the list. This specifies the type of
data (numeric, date, time, and so on) the user can enter. The Editable option must be set
for this to be effective. For more information, see
“Setting format options” on page 153
.
8
Click the Validate tab to specify a method for validating data. You can use custom
JavaScripts to define types of validation, such as allowing only numeric entries in a field.
For more information, see
“Setting validation options” on page 153
.
9
Click the Calculate tab if you want to perform mathematical operations on two or more
form field entries. For more information, see
“Setting calculation options” on page 154
.
To create a list box:
1
Create a form field, as described in
“Creating form fields” on page 145
, and select List
Box from the Type menu of the Field Properties dialog box.