formData.view.model

Provides read/write access to the properties of the form fields of the current record's attributes.

NOTE  
To access the values of the attributes, as stored in the form fields, see formData.model.
To access the values of the attributes, as stored in the database, see ebs.getFormEntity.

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.

Properties

Property Type Description
.isOptional boolean Sets the attribute's form field as optional.
.isRecommended boolean Sets the attribute's form field as recommended.
.isRequired boolean Sets the attribute's form field as required.
.readonly boolean Sets the attribute's form field as readonly.
.required boolean Deprecated. Use .isRequired instead.
.visible boolean Sets the attribute's form 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