CurrentValue

Applies to

PDFFormFieldCheckBox, PDFFormFieldComboBox, PDFFormFieldListBox, PDFFormFieldRadioButton, and PDFFormFieldText objects

Description

Gets or sets the current value of the object.

Data type

The data type is different because the object requires different value. It is:

Boolean for PDFFormFieldCheckBox and PDFFormFieldRadioButton;

String for PDFFormFieldComboBox and PDFFormFieldText;

Long for PDFFormFieldListBox.

Usage

When DefaultValue is set but CurrentValue is not, the value of DefaultValue will be automatically assigned to CurrentValue.

In scripts

This example shows how to set the current value of the PDFFormFieldComboBox lpdf_combobox as the value in its first item:

lpdf_combobox.currentvalue = lpdf_combobox.getitemtext(1)