Applies to
PDFFormFieldGroup
Description
Gets or sets the form field types that can be added in the group object. Once the FieldType is specified, error would occur if you attempt to add an incompatible field in the group.
Data type
PDFFormFieldGroupType. It is an enumerated data type, having the following possible values:
-
(Default) PDFFormFieldGroupType_Mixed!. All the form field types (except RadioButton) are supported. Values of form fields will not be synchronized, even if the fields are of the same type.
-
PDFFormFieldGroupType_RadioButton!. Only allows PDFFormFieldRadioButton.
-
PDFFormFieldGroupType_PushButton!. Only allows PDFFormFieldPushButton.
-
PDFFormFieldGroupType_CheckBox!. Only allows PDFFormFieldCheckBox. Values of the form fields will be synchronized.
-
PDFFormFieldGroupType_ListBox!. Only allows PDFFormFieldListBox. Values of the form fields will be synchronized.
-
PDFFormFieldGroupType_ComboBox!. Only allows PDFFormFieldComboBox. Values of the form fields will be synchronized.
-
PDFFormFieldGroupType_TextField!. Only allows PDFFormFieldText. Values of the form fields will be synchronized.
Usage
Note that you must create a PDFFormFieldGroup for hosting the PDFFormFieldRadioButton objects, and the FieldType must be PDFFormFieldGroupType_RadioButton!.
In scripts
This example shows how to set the allowed field type of the PDFFormFieldGroup object lpdf_group as PDFFormFieldRadioButton:
lpdf_group.fieldtype = PDFFormFieldGroupType_RadioButton!