Class: FormFieldCreationManager

Core. FormFieldCreationManager

A manager class that controls form field creation and editing

new FormFieldCreationManager()

Extends

  • EventHandler

Methods


applyFormFields()

Applies all form field annotations as PDF Fields with associated Widgets

endFormFieldCreationMode()

Ends the Form Field Creation mode, converting all the form field place holder annotations into Widget annotations with their respective fields.

getAnnotationFlags(formfieldPlaceHolder)

Returns a Widget Flags object based on the flags set in the form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
Returns:
WidgetFlags

getFieldFlag(formfieldPlaceHolder, fieldFlag)

Returns true or false depending on whether a flag is set on the form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
fieldFlag A string representing the field flag
Returns:
boolean representing whether flag is set

getFieldLabels()

Returns the labels being used to store the field custom data

getFieldName(formfieldPlaceHolder)

Gets the field name from the form form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
Returns:
string Field name

getFieldOptions(formfieldPlaceHolder)

Gets the field options associated with the form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder

getFieldValue(formfieldPlaceHolder)

Gets the field value from the form form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
Returns:
string Field value

getRadioButtonGroups()

Gets the existing radio button groups
Returns:
string[] Array with Radio Button group names

isInFormFieldCreationMode()

Gets if the Form Field Creation manager is currently in creation mode

setFieldFlag(formfieldPlaceHolder, fieldFlag, boolean)

Set a field flag as true or false Available field flags are those listed in custom data labels
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
fieldFlag The field flag name
boolean Value for the flag

setFieldName(formfieldPlaceHolder, fieldName)

Set the form field placeholder name
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
fieldName The field name

setFieldOptions(formfieldPlaceHolder, options)

Sets the options list on the form field place holder
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
options The options, an array of objects with a value and displayValue property

setFieldValue(formfieldPlaceHolder, fieldValue)

Set the field default value
Parameters:
Name Type Description
formfieldPlaceHolder The form field place holder
fieldValue The field value

startFormFieldCreationMode()

Starts the Form Field Creation mode, a mode in which all annotations are hidden and only form field place holder annotations can be added