addItem

Adds new items to the current form field. For example, this method adds new items to a drop-down list.

Syntax

Reference_Syntax.addItem( STRING param1 [, STRING param2 ] )

Parameters

param1

A valid string representing the value to display in the field.

param2 (Optional)

A valid string representing the new item’s bound value. If empty, the default value is an empty string.

Returns

Empty

Applies to

Version

XFA 2.1

Examples

JavaScript

DropDownList1.addItem("Human Resources");

FormCalc

DropDownList1.addItem("Human Resources")

// Ethnio survey code removed