new FormFieldCreationManager(annotationManager)
Parameters:
| Name | Type | Description |
|---|---|---|
annotationManager |
Core.AnnotationManager | The annotation manager instance |
Extends
- EventHandler
Members
-
<static> Events
-
Properties:
Name Type Description FORM_CREATION_STARTEDstring Core.FormFieldCreationManager.formFieldCreationModeStarted FORM_CREATION_ENDEDstring Core.FormFieldCreationManager.formFieldCreationModeEnded FORM_CREATION_EMPTY_FIELD_NAMESstring Core.FormFieldCreationManager.formFieldEmptyFieldNames
Methods
-
allowToolsInFormFieldCreationMode(tools)
-
Adds tools to the list of tools that are allowed to be used in form field creation mode
Parameters:
Name Type Description toolsArray.<string> The names of the tools to be added -
disableShowingMarkupAnnotations()
-
Disables the display of markup annotations during form field creation
-
disallowToolsInFormFieldCreationMode(tools)
-
Removes tools from the list of tools that are allowed to be used in form field creation mode
Parameters:
Name Type Description toolsArray.<string> The names of the tools to be removed -
enableShowingMarkupAnnotations()
-
Enables the display of markup annotations during form field creation
-
endFormFieldCreationMode()
-
Ends the Form Field Creation mode, converting all the form field place holder annotations into Widget annotations with their respective fields.
-
getFieldLabels()
-
Returns the labels being used to store the field custom data
Returns:
The labels used to store the field custom data -
getIndicatorText(widgetAnnotation)
-
Gets the field indicator text
Parameters:
Name Type Description widgetAnnotationCore.Annotations.WidgetAnnotation The widget annotation to pull the field indicator text from Returns:
The field indicator text- Type
- string
-
getRadioButtonGroups()
-
Gets the existing radio button groups
Returns:
Array with Radio Button group names- Type
- Array.<string>
-
getShowIndicator(widgetAnnotation)
-
Gets whether or not the form field indicator should be shown
Parameters:
Name Type Description widgetAnnotationCore.Annotations.WidgetAnnotation The widget annotation to pull the field indicator flag from Returns:
Whether or not to show the field indicator- Type
- boolean
-
getSignatureOption(signatureWidget)
-
Gets the signature option for signature widgets. Returns either fullSignature or initials
Parameters:
Name Type Description signatureWidgetCore.Annotations.SignatureWidgetAnnotation The widget annotation to pull the signature option from Returns:
One of the signature options - either fullSignature or initials -
isInFormFieldCreationMode()
-
Gets if the Form Field Creation manager is currently in creation mode
-
isShowingMarkupAnnotations()
-
Checks if markup annotations are being displayed during form field creation
Returns:
True if markup annotations are shown during form field creation- Type
- boolean
-
isToolAllowedInFormFieldCreationMode(toolName)
-
Returns whether or not a tool is allowed to be used in form field creation mode
Parameters:
Name Type Description toolNamestring The name of the tool to check Returns:
Whether or not the tool is allowed in forms mode- Type
- boolean
-
setFieldName(widget, fieldName)
-
Sets the form field name
Parameters:
Name Type Description widgetCore.Annotations.WidgetAnnotation The form field widget fieldNamestring The field name Returns:
Validation response indicating if the name is valid -
setIndicatorText(widgetAnnotation, indicatorText)
-
Set the field indicator text
Parameters:
Name Type Description widgetAnnotationCore.Annotations.WidgetAnnotation The widget annotation to set the field indicator text on indicatorTextstring The indicator text -
setShowIndicator(widgetAnnotation, showIndicator)
-
Set whether or not to show the field indicator
Parameters:
Name Type Description widgetAnnotationCore.Annotations.WidgetAnnotation The widget annotation to set the field indicator flag on showIndicatorboolean Whether or not to show the field indicator -
setSignatureOption(signatureWidget, signatureOption)
-
Sets whether a signature widget should take in a full signature, or initials
Parameters:
Name Type Description signatureWidgetCore.Annotations.SignatureWidgetAnnotation The signature widget signatureOptionCore.FormFieldCreationManager.SignatureOptions The type of signature -
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
Type Definitions
-
FieldLabels
-
Field custom data labels
Type:
- Object
Properties:
Name Type Description FIELD_VALUEstring Label for field value custom data FLAGSstring Label for field flags custom data READ_ONLYstring Label for read only custom data REQUIREDstring Label for required custom data OPTIONSstring Label for options custom data MULTI_SELECTstring Label for multi select custom data SHOW_INDICATORstring Label for show indicator custom data INDICATOR_TEXTstring Label for indicator text custom data SIGNATURE_TYPEstring Label for signature type custom data IS_DATA_PLACEHOLDER_COPYstring Label for data placeholder copy custom data -
FieldNameValidationErrorType
-
Field name validation error type
Type:
- 'empty' | 'duplicate'
-
FieldNameValidationResponse
-
Field name validation response
Type:
- Object
Properties:
Name Type Argument Description isValidboolean Whether the field name is valid errorTypeCore.FormFieldCreationManager.FieldNameValidationErrorType <optional>
The type of validation error if not valid -
SignatureOptions
-
Signature Options
Type:
- 'fullSignature' | 'initialsSignature'
Events
-
formFieldCreationModeEnded
-
Triggered when form field creation mode is ended
-
formFieldCreationModeStarted
-
Triggered when form field creation mode is started
-
formFieldEmptyFieldNames
-
Triggered when there are form fields with empty field names