var filter = this.getField("Filter");
event.value = (oil.value + filter.value) * 1.0725;
In this example, the
value
of the field being calculated is set to the sum of the
oil
and
filter
fields and multiplied by the state sales tax.
Value
is perhaps the most important of all the field
properties.
Field Methods
buttonImportIcon
Parameter: none
Returns: nothing
This method imports the appearance of a button from another PDF file. It prompts the user to
select a PDF file available on the system.
clearItems
Parameters: none
Returns: nothing
This method clears all the values in a
list box
or
combo box.
// Clear the field MyListbox
var f = this.getField("MyListBox");
f.clearItems();
deleteItemAt
Parameters: [nIndex]
Returns: nothing
4.0
This function deletes an item in a
combo box
or a
list box.
The parameter
nIndex
is the index of
the item in the list to delete (zero-based). If
nIndex
is not specified then the currently selected
item is deleted.
var a = this.getField("MyListBox");
a.deleteItemAt();
getArray
Parameters: None
Returns: an array of fields.
Acrobat Forms - JavaScript Object Specification
47
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.