Skip to content

Built-In Form Property Editor Components ​

Built-in form property editor components are a set of commonly used components preset in Foxit PDF SDK for Web, such as field name, form field visibility, and appearance settings including border color, fill color, text font, and font size. These built-in components allow users to conveniently customize the layout of the form properties dialog without writing additional code.

The following sections list the built-in form property editor components in Foxit PDF SDK for Web by form field category.

Common Form Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType/FormFieldPropertyName
Component TypeDescription
form-designer-v2:field-name-editorPDFFormFieldsetName
getName
DataEvents.formFieldPropertyUpdated/ FormFieldPropertyName.NAMEInput boxEdits the form field name
form-designer-v2:field-alternate-name-editorPDFFormFieldsetAlternateName
getAlternateName
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.ALTERNATE_NAME
Input boxEdits the alternate name of the form field
form-designer-v2:widget-visible-type-selectorWidgetsetFlags
getFlags
DataEvents.annotationUpdated
AnnotUpdatedType.flagsUpdated
Drop-down listSets form field visibility: visible, hidden, visible but not printable, or hidden but printable
form-designer-v2:field-orientation-selectorWidgetsetRotation/ getRotationDataEvents.annotationUpdated
AnnotUpdatedType.formWidgetRotationUpdated
Drop-down listSets the display orientation of the form field (rotation angle)
form-designer-v2:field-readonly-checkboxPDFFormFieldsetFlags
updateFlagByOptions
describeFieldFlags
isReadonly
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether the form field is read-only
form-designer-v2:field-required-checkboxPDFFormFieldsetFlags
updateFlagByOptions
describeFieldFlags
isRequired
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether the form field is required. Valid only for CheckBox, RadioBox, and TextField
form-designer-v2:widget-border-color-pickerWidgetsetMKBorderColor
getMKBorderColor
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetMKBorderColorUpdated
Color pickerSets the border color of the form field
form-designer-v2:widget-line-style-selectorWidgetsetBorderStyle
getBorderStyle
DataEvents.annotationUpdated
AnnotUpdatedType.borderStyleUpdated
Drop-down listSets the border line style of the form field
form-designer-v2:widget-fill-color-pickerWidgetsetMKFillColor
getMKFillColor
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetMKFillColorUpdated
Color pickerSets the fill color of the form field
form-designer-v2:widget-line-thickness-selectorWidgetsetBorderWidth
getBorderWidth
DataEvents.annotationUpdated
AnnotUpdatedType.borderStyleUpdated
Drop-down listSets the border width of the form field
form-designer-v2:widget-text-size-selectorWidgetsetTextSize
setDefaultAppearance
getTextSize
getDefaultAppearance
DataEvents.annotationUpdated
AnnotUpdatedType.defaultAppearanceUpdated
Editable combo boxSets the text font size of the form field
form-designer-v2:widget-text-color-pickerWidgetsetTextColor
setDefaultAppearance
getTextColor
getDefaultAppearance
DataEvents.annotationUpdated
AnnotUpdatedType.defaultAppearanceUpdated
Color pickerSets the text color of the form field
form-designer-v2:widget-font-selectorWidgetsetDefaultAppearance
getFont
DataEvents.annotationUpdated
AnnotUpdatedType.defaultAppearanceUpdated
Drop-down listSets the text font of the form field
form-designer-v2:field-text-directionWidgetsetDirectionRTL
getDirectionRTL
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetDirectionRTLUpdated
Radio button groupSets the display direction of the form field (left-to-right/right-to-left)
form-designer-v2:widget-position-propertiesWidgetsetRect
getRect
DataEvents.annotationUpdated
AnnotUpdatedType.rectUpdated
Composite panelSets form field position and size, allowing users to specify units and modify the position with fixed width and height
form-designer-v2:lock-widget-checkboxWidgetsetFlags
getFlags
DataEvents.annotationUpdated
AnnotUpdatedType.flagsUpdated
CheckboxSets whether the form field is locked. Once locked, all properties of the form field become non-editable
form-designer-v2:widget-action-creatorWidgetAdditionalAction.addActionDataEvents.annotationUpdated
AnnotUpdatedType.additionalActionDataUpdated
Composite componentLets users choose different trigger methods and action types to add new actions to a form field
form-designer-v2:widget-action-treeWidgetmoveActionOrder
updateAction
AdditionalAction.updateActionData

removeAction
AdditionalAction.removeAction
DataEvents.annotationUpdated

AnnotUpdatedType.actionDataUpdated
AnnotUpdatedType.additionalActionDataUpdated
Composite componentDisplays the action list of the form field and allows users to move, edit, and delete selected actions

Shared Property Editor Components for Combo Box and List Box ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:combo-list-box-item-list-selectorPDFFormFieldsetOptions
deleteOptions
insertOption
addOption
updateOption

getOptionsSize
moveOption
selectOption
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.CHOICE_OPTION_ITEMS
List boxDisplays the option list of a Combo Box or List Box, and can also set the currently selected item. Used together with form-designer-v2:combo-list-box-item-editor, form-designer-v2:combo-list-box-add-item-button, form-designer-v2:combo-list-box-export-value-editor, form-designer-v2:combo-list-box-delete-item-button, form-designer-v2:combo-list-box-move-item-up-button, and form-designer-v2:combo-list-box-move-item-down-button to edit, add, delete, and move options in a Combo Box or List Box
form-designer-v2:combo-list-box-item-editorPDFFormFieldupdateOptionDataEvents.formFieldPropertyUpdated
FormFieldPropertyName.CHOICE_OPTION_ITEMS
Input boxAdds options to a Combo Box or List Box, and can also edit the selected option
form-designer-v2:combo-list-box-add-item-buttonPDFFormFieldaddOption...ButtonAdds an option to a Combo Box or List Box, and must be used together with form-designer-v2:combo-list-box-item-editor and form-designer-v2:combo-list-box-export-value-editor
form-designer-v2:combo-list-box-export-value-editorPDFFormFieldaddOption
updateOption
...Input boxSets the export value of a Combo Box or List Box option, and must be used together with form-designer-v2:combo-list-box-item-editor and form-designer-v2:combo-list-box-add-item-button
form-designer-v2:combo-list-box-delete-item-buttonPDFFormFielddeleteOption...ButtonDeletes the currently selected Combo Box or List Box option
form-designer-v2:combo-list-box-move-item-up-buttonPDFFormFieldmoveOption...ButtonMoves the currently selected Combo Box or List Box option up
form-designer-v2:combo-list-box-move-item-down-buttonPDFFormFieldmoveOption...ButtonMoves the currently selected Combo Box or List Box option down

Shared Property Editor Components for Combo Box and Text Field ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:widget-format-category-selectorPDFFormFieldsetFormatAction
removeFormatAction
getFormatActionInfo
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FORMAT_ACTION
Drop-down listSets the display format of Text Field and Combo Box. Must be used together with form-designer-v2:custom-format-options, form-designer-v2:number-format-options, form-designer-v2:date-format-options, form-designer-v2:percentage-format-options, form-designer-v2:special-format-options, and form-designer-v2:time-format-options
form-designer-v2:custom-format-options
form-designer-v2:number-format-options
form-designer-v2:date-format-options
form-designer-v2:percentage-format-options
form-designer-v2:special-format-options
form-designer-v2:time-format-options
PDFFormField......Composite componentEdits the detailed configuration of different display formats for Text Field and Combo Box. The visibility of these components should be controlled according to the format selected in form-designer-v2:widget-format-category-selector
form-designer-v2:widget-format-category-tip---Static textDisplays different tip text according to the format type selected in form-designer-v2:widget-format-category-selector
form-designer-v2:validation-action-editorPDFFormFieldsetValidateAction
getValidateActionInfo
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.VALIDATE_ACTION
Composite componentConfigures validation rules for Text Field and Combo Box
form-designer-v2:calculate-action-editorPDFFormFieldsetCalculateAction
getCalculateActionInfo
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.CALCULATE_ACTION
Composite componentConfigures calculation rules for Text Field and Combo Box

Shared Property Editor Components for Radio Button and Check Box ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:normal-caption-selectorWidgetsetNormalCaption
getNormalCaption
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetNormalCaptionUpdated
Drop-down listSets the button style of Radio Button and Check Box
form-designer-v2:export-value-editorWidgetsetExportValue
getExportValue
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetExportValueUpdated
Input boxSets the export value of Radio Button and Check Box
form-designer-v2:checked-by-default-checkboxPDFFormFieldsetCheckedByDefault
isCheckedByDefault
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.CHECKED_BY_DEFAULT
CheckboxSets whether Radio Button and Check Box are selected by default

Form Button Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:push-button-layout-selectorWidgetsetIconCaptionRelation
getIconCaptionRelation
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetIconCaptionRelationUpdated
Drop-down listSets the layout of the icon and text in Push Button
form-designer-v2:push-button-show-icon-fit-dialog-buttonWidgetsetIconFitOptions
getIconFitOptions
-ButtonOpens the form-designer-v2:icon-fit-dialog dialog when clicked
form-designer-v2:icon-fit-dialogWidgetsetIconFitOptions
getIconFitOptions
-DialogSets the icon scaling mode of Push Button
form-designer-v2:push-button-behavior-selectorWidgetsetHighlightingMode
getHighlightingMode
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetHighlightingModeUpdated
Drop-down listSets the highlight mode of Push Button after the mouse is pressed
form-designer-v2:push-button-caption-editorWidgetsetMKCaption
getMKCaptionOptions
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetCaptionUpdated
Input boxSets the text displayed by Push Button in different states. The "state" is determined by form-designer-v2:push-button-icon-caption-position-selector
form-designer-v2:push-button-icon-editorWidgetsetMKIcon
removeMKIcon
getMKIcon
getMKIconOptions
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetIconUpdated
-Previews and updates the icons of Push Button in different states, including mouse down, mouse up, and mouse enter. The state is determined by form-designer-v2:push-button-icon-caption-position-selector, so these components must be used together
form-designer-v2:push-button-icon-caption-position-selectorWidget--SelectorUsed together with form-designer-v2:push-button-caption-editor and form-designer-v2:push-button-icon-editor to specify different states of Push Button, including mouse down, mouse up, and mouse enter. form-designer-v2:push-button-caption-editor and form-designer-v2:push-button-icon-editor are then used to set the corresponding text and icon for each state

Text Field Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:text-field-alignment-selectorWidgetsetAlignment
getAlignment
DataEvents.annotationUpdated
AnnotUpdatedType.formWidgetAlignmentUpdated
Drop-down listSets the text alignment of Text Field
form-designer-v2:text-field-default-value-editorPDFFormFieldsetDefaultValue
getDefaultValue
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.DEFAULT_VALUE
Input boxSets the default value of Text Field
form-designer-v2:text-field-scroll-long-text-checkboxPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxEnables scrolling long text. When Text Field uses a fixed font size and the content exceeds the text box size, this determines whether the text should automatically scroll with the cursor so the full content can be displayed
form-designer-v2:text-field-max-length-editorPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
Checkbox + input boxSets whether the text length of Text Field is limited and allows a maximum length to be specified
form-designer-v2:text-field-password-checkboxPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether Text Field is a password box. Once enabled, spell check, comb formatting, and multiline input cannot be set
form-designer-v2:text-field-check-spellingPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether spell check is enabled for Text Field. Once enabled, it cannot be set as a password box
form-designer-v2:text-field-comb-of-editorPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
Checkbox + input boxSets Text Field as a comb field and specifies the number of comb characters. Once enabled, other options become unavailable, including scrolling long text, limiting text length, password box, spell check, and multiline input
form-designer-v2:text-field-multiline-checkboxPDFFormFielddescribeFieldFlags
updateFlagByOptions
setFlags
getFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
Checkbox + input boxSets Text Field as multiline. Once enabled, Text Field cannot be set as a password box and multiline input box

Combo Box Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:combo-box-edit-checkboxPDFFormFieldupdateFlagByOptionsDataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether Combo Box is editable

List Box Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:list-box-multille-selection-checkboxPDFFormFieldupdateFlagByOptionsDataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether List Box allows multiple selection

Radio Button Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:radio-button-unison-checkboxPDFFormFieldupdateFlagByOptions
describeFieldFlags
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.FLAGS
CheckboxSets whether Radio Button instances with the same name and value are selected together

Signature Field Property Editor Components ​

ComponentTarget ObjectRelated APIChange Event
AnnotUpdatedType
FormFieldPropertyName
Component TypeDescription
form-designer-v2:signed-action-editorPDFSignaturesetMDPAction
getMDPAction
DataEvents.formFieldPropertyUpdated
FormFieldPropertyName.SIGNATURE_MDP_ACTION
Composite componentEdits the MDP configuration of signature fields

Based on the built-in form property editor components above, developers can quickly build a customized UI layout for editing form properties. For a better understanding, you can refer to the sample included in the SDK package: /examples/UIExtension/form-properties-editor/index.html.

Version Compatibility ​

Minimum supported version: Foxit PDF SDK for Web 11.0.0