DefaultValue

Applies to

PDFFormFieldCheckBox, PDFFormFieldComboBox, PDFFormFieldListBox, PDFFormFieldRadioButton, and PDFFormFieldText objects

Description

Gets or sets the default value of the object. This value will be used when the form is reset.

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

In scripts

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

lpdf_combobox.defaultvalue = lpdf_combobox.getitemtext(2)