↳ Field
↳↳ Checkbox
↳↳ FileUpload
↳↳ EmailInput
↳↳ Captcha
• get :type(): string
Custom widget type show to the user for capturing the data.
string
Scriptable.:type
• set constraintMessage(constraint): void
Sets constraint message(s) for validation types. This setter automatically triggers change events, enabling UI components to react to constraint message updates.
example
// Set single constraint message
field.constraintMessage = { type: 'required', message: 'This field is mandatory' };
// Set multiple constraint messages in single call (new functionality)
field.constraintMessage = [
{ type: 'minimum', message: 'Date must be after 2025-08-11' },
{ type: 'maximum', message: 'Date must be before 2025-08-14' }
];
// Set pattern validation message
field.constraintMessage = { type: 'pattern', message: 'Please match the required format' };
see ConstraintsMessages for available constraint types
| Name | Type | Description |
|---|---|---|
constraint |
{ message: string ; type: keyof ConstraintsMessages } | { message: string ; type: keyof ConstraintsMessages }[] |
Single constraint object or array of constraint objects |
void
• get dataRef(): undefined | null | string
To map the field’s value to a property in the data model.
undefined | null | string
Scriptable.dataRef
• get default(): any
Default value of the Field.
any
• get description(): undefined | string
Extra description to be shown to the user to aid in form filling experience. It can be rich text.
undefined | string
Scriptable.description
• set description(d): void
Extra description to be shown to the user to aid in form filling experience. It can be rich text.
| Name | Type |
|---|---|
d |
undefined | string |
void
Scriptable.description
• get displayFormat(): undefined | string
format in which user will see the value after update
undefined | string
• get displayValue(): any
value to be displayed to the user after update
any
• get displayValueExpression(): undefined | string
expression that when evaluated returns the displayValue of a field
undefined | string
FieldModel.displayValueExpression
• get editFormat(): undefined | string
format in which user will edit the value
undefined | string
• get editValue(): any
value to be displayed to the user for edit
any
• get emptyValue(): undefined | null | ""
undefined | null | ""
• get enabled(): undefined | boolean
Whether the field is enabled and takes part in rules, events etc.
undefined | boolean
• set enabled(e): void
Whether the field is enabled and takes part in rules, events etc.
| Name | Type |
|---|---|
e |
undefined | boolean |
void
• get enforceEnum(): undefined | boolean
undefined | boolean
• get enum(): undefined | any[]
undefined | any[]
• set enum(e): void
| Name | Type |
|---|---|
e |
undefined | any[] |
void
• get enumNames(): undefined | string[]
undefined | string[]
• set enumNames(e): void
| Name | Type |
|---|---|
e |
undefined | string[] |
void
• get errorMessage(): undefined | string
undefined | string
• set errorMessage(e): void
| Name | Type |
|---|---|
e |
undefined | string |
void
• get exclusiveMaximum(): undefined | string | number
undefined | string | number
• set exclusiveMaximum(eM): void
| Name | Type |
|---|---|
eM |
undefined | string | number |
void
• get exclusiveMinimum(): undefined | string | number
undefined | string | number
• set exclusiveMinimum(eM): void
| Name | Type |
|---|---|
eM |
undefined | string | number |
void
• get fieldType(): string
Type of field to capture the user data.
string
Scriptable.fieldType
• get form(): FormModel
Scriptable.form
• get format(): undefined | string
returns the format constraint
undefined | string
• get fragment(): string
string
Scriptable.fragment
• get id(): string
Unique id of the form field.
string
Scriptable.id
• get index(): number
The index of the Field within its parent.
number
Scriptable.index
• get isContainer(): boolean
Whether the form field is container or not
boolean
Scriptable.isContainer
• get label(): undefined | Label
Label to be used for the field.
undefined | Label
Scriptable.label
• set label(l): void
Label to be used for the field.
| Name | Type |
|---|---|
l |
undefined | Label |
void
Scriptable.label
• get lang(): undefined | string
language of the field
undefined | string
Scriptable.lang
• get maxLength(): undefined | number
undefined | number
• get maximum(): undefined | string | number
undefined | string | number
• set maximum(m): void
| Name | Type |
|---|---|
m |
undefined | string | number |
void
• get minLength(): undefined | number
undefined | number
• get minimum(): undefined | string | number
undefined | string | number
• set minimum(m): void
| Name | Type |
|---|---|
m |
undefined | string | number |
void
• get name(): undefined | string
Name of the form field.
undefined | string
Scriptable.name
• get parent(): ContainerModel
Parent of the current field
Scriptable.parent
• get pattern(): undefined | string
undefined | string
• get placeholder(): undefined | string
The placeholder to show on the widget.
undefined | string
• get properties(): Object
Custom properties of the form field.
Object
Scriptable.properties
• set properties(p): void
Custom properties of the form field.
| Name | Type |
|---|---|
p |
Object |
void
Scriptable.properties
• get qualifiedName(): any
any
Scriptable.qualifiedName
• get readOnly(): undefined | boolean
Whether the field should be readOnly to end user or not.
undefined | boolean
• set readOnly(e): void
Whether the field should be readOnly to end user or not.
| Name | Type |
|---|---|
e |
undefined | boolean |
void
• get repeatable(): any
Field is repeatable or not
any
Scriptable.repeatable
• get required(): boolean
boolean
• set required(r): void
| Name | Type |
|---|---|
r |
boolean |
void
• get ruleEngine(): RuleEngine
RuleEngine
FieldModel.ruleEngine
Scriptable.ruleEngine
• get screenReaderText(): undefined | string
undefined | string
Scriptable.screenReaderText
• get step(): undefined | number
undefined | number
• get tooltip(): undefined | string
undefined | string
• get type(): undefined | string
undefined | string
Scriptable.type
• get uniqueItems(): undefined | boolean
undefined | boolean
Scriptable.uniqueItems
• get valid(): any
The current validation state of the Field. The property is always computed after merging the Data Model with the Form
any
• set valid(e): void
The current validation state of the Field. The property is always computed after merging the Data Model with the Form
| Name | Type |
|---|---|
e |
any |
void
• get validity(): any
any
• get value(): any
The current value of the Field. The property is serialized in the Data Model.
any
Scriptable.value
• set value(v): void
The current value of the Field. The property is serialized in the Data Model.
| Name | Type |
|---|---|
v |
any |
void
Scriptable.value
• get visible(): undefined | boolean
Whether the field should be visible to author or not.
undefined | boolean
Scriptable.visible
• set visible(v): void
Whether the field should be visible to author or not.
| Name | Type |
|---|---|
v |
undefined | boolean |
void
Scriptable.visible
• _eventSource: EventSource = EventSource.CODE
▸ change(event, context): void
| Name | Type |
|---|---|
event |
Action |
context |
any |
void
▸ dispatch(action): void
| Name | Type |
|---|---|
action |
Action |
void
FieldModel.dispatch
▸ executeAction(action): void
Executes the given action
| Name | Type | Description |
|---|---|---|
action |
Action |
event object |
void
▸ executeExpression(expr): any
| Name | Type |
|---|---|
expr |
string |
any
▸ focus(): void
void
▸ getDependents(): { id: string = x.node.id; propertyName: undefined | string = x.propertyName }[]
{ id: string = x.node.id; propertyName: undefined | string = x.propertyName }[]
▸ getErrorMessage(constraint): string
Returns the error message for a given constraint
| Name | Type |
|---|---|
constraint |
keyof ConstraintsMessages |
string
▸ getNonTransparentParent(): ContainerModel
Scriptable.getNonTransparentParent
▸ getPropertiesManager(): PropertiesManager
Get the PropertiesManager instance for use in setVariable
PropertiesManager
Scriptable.getPropertiesManager
▸ getRules(): Items<string>
Items<string>
▸ getState(isRepeatableChild?, forRestore?): Object
state of the form object
| Name | Type | Default value |
|---|---|---|
isRepeatableChild |
boolean |
false |
forRestore |
boolean |
false |
Object
| Name | Type |
|---|---|
:type |
string |
_dependents |
undefined | { id: string = x.node.id; propertyName: undefined | string = x.propertyName }[] |
accept? |
string[] |
allowedComponents |
undefined |
altText? |
string |
appliedCssClassNames? |
string |
buttonType? |
string |
checked? |
boolean |
columnClassNames |
undefined |
columnCount |
undefined |
constraintMessages? |
ConstraintsMessages |
dataRef? |
null | string |
default? |
any |
description? |
string |
displayFormat |
undefined | string |
displayValue |
any |
displayValueExpression? |
string |
editFormat |
undefined | string |
editValue |
any |
emptyValue? |
"" | "undefined" | "null" |
enabled |
undefined | boolean |
enforceEnum? |
boolean |
enum? |
any[] |
enumNames? |
string[] |
errorMessage? |
string |
events? |
Items<undefined | string | string[]> |
exclusiveMaximum? |
string | number |
exclusiveMinimum? |
string | number |
fieldType? |
string |
format? |
string |
gridClassNames |
undefined |
id |
string |
index |
number |
label? |
Label |
lang? |
string |
maxFileSize? |
string | number |
maxItems? |
number |
maxLength? |
number |
maxOccur? |
number |
maximum? |
string | number |
minItems? |
number |
minLength? |
number |
minOccur? |
number |
minimum? |
string | number |
name? |
string |
parent |
undefined |
pattern? |
string |
placeholder? |
string |
properties |
{ [key: string]: any; } & { [key: string]: any; } |
qualifiedName |
any |
readOnly |
undefined | boolean |
repeatable? |
boolean |
required? |
boolean |
rules? |
Items<string> |
screenReaderText? |
string |
step? |
number |
tooltip? |
string |
type? |
string |
uniqueItems? |
boolean |
valid? |
boolean |
validationExpression? |
string |
validationMessage? |
string |
validity? |
any |
value? |
any |
viewType? |
string |
visible? |
boolean |
▸ isTransparent(): boolean
Transparent form fields are meant only for creation of view. They are also not part of data
boolean
▸ markAsInvalid(message, constraint?): void
API to mark a particular field as invalid
| Name | Type | Default value | Description |
|---|---|---|---|
message |
string |
undefined |
error message |
constraint |
null | keyof ConstraintsMessages |
null |
constraint type due to which field is marked invalid. It should be key of ConstraintsMessages or null |
void
▸ ruleNodeReference(): any
any
FieldModel.ruleNodeReference
Scriptable.ruleNodeReference
▸ syncDataAndFormModel(dataNode): void
| Name | Type |
|---|---|
dataNode |
default |
void
FieldModel.syncDataAndFormModel
Scriptable.syncDataAndFormModel
▸ toString(): any
any
▸ triggerValidationEvent(changes): void
| Name | Type |
|---|---|
changes |
any |
void
▸ validate(): ValidationError[]
Validates the current form object
▸ valueOf(): any
any