List Box - 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
Calculate Tab
The action of the combo box can be set with the field level
of "Calculate". The UI has three categories of Calculate, the JavaScript counterpart is the
AFSimple_Calculate()
Region/Name
Value is the sum
(product, average,
minimum, maximum)
of the following fields:
Custom
Table Notes.
Custom: Any calculate script that does not use the AFSimple_Calculate() function is
classified as custom.
Miscellaneous Programming Notes
The number of items in a combo (or list) box can be queried using the property
numItems.
getItemAt
of that item.
insertItemAt
deleteItemAt
clearItems
currentValueIndices
box. For example, putting f.currentValueIndices = 2 will make the third item (0 based)
the current value of combo box. (Its export value will be exported, if the form is
submitted.)

List Box

The List Box Properties dialog has five tabs: General, Appearance, Options, Actions, and
Selection Change.
General Tab
The General tab shows the same set of properties as for buttons. For details, see the
General Tab
Appearance Tab
The Appearance tab shows the same set of properties as for buttons. For details, see the
Appearance Tab
70
method, as listed in the table below.
See Reference
AFSimple_Calculate()
Javascripts\aform.js
can be used to get the face name (the item name) and/or the export value
can be used to insert a new item into a combo (or list) box.
can be used to delete an item from a combo (or list) box.
can be used to delete the whole list from the combo (or list) box.
can be used to change the current value of the combo (or list)
for buttons.
for buttons.
and a trigger name
setAction
Example
in
f.setAction("Calculate",
'AFSimple_Calculate("SUM",
new Array ("line.1",
"line.3"))' );
see table notes
Acrobat JavaScript Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents