formData.view.model

Provides read/write access to the properties of the attribute fields of the current screen/form.

NOTE  
To access the values of the attributes, as stored in the attribute fields, see formData.model.
To access the values of the attributes, as stored in the database, see ebs.getFormEntity (only for legacy forms, not for screens).

Sytax

Copy
formData.view.model.{attributeName: string}.{isOptional|isRecommended|isRequired|readonly|required|visible|hint|errorHint}
 
Parameter Type Description
attributeName string Name of the record attribute for which you wish to edit the form field's properties.
Workflows include complex data domains with multiple entities and relationships. For information on how to refer workflow attributes, see the formData.model documentation.

Properties

Property Type Description
.isOptional boolean Sets the attribute's field as optional.
.isRecommended boolean Sets the attribute's field as recommended.
.isRequired boolean Sets the attribute's field as required.
.readonly boolean Sets the attribute's field as readonly.
.required boolean Deprecated. Use .isRequired instead.
.visible boolean Sets the attribute's field visibility.
Setting the property to false, completely removes the field from the web page's Document Object Model
.hint
(v24.4 or later)
string Displays a help text next to the attribute field. Gives precedence to .errorHint.
.errorHint
(v24.4 or later)
string Displays a red help text next to the attribute field. Takes precedence over .hint.
.minValue
(v24.4 or later)
date Sets a minimum date value for date, datetime, and invariant date attribute fields.
.maxValue
(v24.4 or later)
date Sets a maximum date value for date, datetime, and invariant date attribute fields.
HINT  
The .errorHint property value replaces the .hint text in the user interface. To disable the .errorHint and revert to the .hint text, set the .errorHint value to an empty string.

Examples