formData.model

(FintechOS Studio 20.1.1 and later)

Provides read/write access to the values of the attribute values on the current screen or form. If you update a field value, it is saved to the corresponding attribute record when the screen or form is saved.

IMPORTANT!  
The attributes must be available in the screen's data context. For more information, see Screen Exposed Data.
NOTE  
Starting with FintechOS 8, workflows have replaced digital journeys as the default user experience. The information below is provided for backward compatibility with legacy form driven flows:

Return Value

Returns a JSON object containing key-value pairs for the current record's attribute names and attribute values. You can use the dot notation or bracket notation to access individual record attributes, for example:

Copy
formData.model.elapsedTime

or

Copy
formData.model['elapsedTime']

Referencing Workflow Attributes

Workflows include complex data domains with multiple entities and relationships. When working with workflow screens, you must specify an attribute's property path accordingly:

Example Method Call Notes
Applicant's first name formData.model.applicant.firstName1 For top-level data objects, you must specify both the data object and attribute name.
Applicant's age formData.model.technicalVariables.age
First name of the applicant's spouse formData.model.applicant.spouse.firstName2 For 1-to-1 relationships, use dot notation to traverse the hierarchy.
First name of the applicant's first codebtor formData.model.applicant.listOfCodebtors[0].firstName3 For 1-to-many relationships, the child entity records are accessed as lists using the following notation:
listOf<entity name>.
[0] referst to the first item.
First name of the applicant's first codebtor's spouse formData.model.applicant.listOfCodebtors[0].spouse.firstName4 Use dot notation to specify the full property path from the top-level entity to the attribute.

Examples