BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

CustomValueEnabled Property

Check if custom value is enabled.

Type

Boolean (read-only)

Remarks

CustomValueEnabled = False means the combo box only includes a drop-down list, with no editable field.

CustomValueEnabled = True means the combo box consists of a drop-down list and an editable field. CustomValue contains the value entered into the editable field.

Example Usage

Set oDocument = CreateObject("easyPDF.PDFDocument.8")
 
Call oDocument.Open("c:\test\input.pdf")
Set oFormFields = oDocument.FormFields
 
For Each oFormField In FormFields
    Select Case oFormField.Type
        Case easyPDFDocument.docFormFieldType.DOC_FRMTYPE_COMBO
            Set oComboField = oFormField
            If oComboField.CustomValueEnabled Then
                MsgBox "Custom Value: " + oComboField.CustomValue
            End If
    End Select
Next oFormField
 
oDocument.Close(False)