Field Methods; Buttonimporticon; Clearitems; Deleteitemat - Adobe ACROBAT FORMS JAVASCRIPT OBJECT Specification

Adobe acrobat version 4.0
Table of Contents

Advertisement

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
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
4.0
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat forms javascript object specification

Table of Contents