Space TimelineSpace Timeline

Field Execution Context

Field execution context is a set of variables available in JavaScript code that is executed in field-specific expressions such as:

  • Visibility condition

  • Enabled condition

  • Read-only condition

  • Required condition

  • Default (computed) value

  • and others.


The following variables are available in the field execution context:

Name Type

Return type

Description

Name Type

Return type

Description

`model`

ValueModel

model (for input fields), or model of the containing field group (for visual fields)

`value`

any

`model` value, an alias for `model.value`

`pageModel`

ValueModel

model of the containing page

`pageData`

any

an alias for `pageModel.value`

`wizardModel`

ValueModel

model of the widget created with Docupace Start

`wizardData`

any

an alias for `wizardModel.value`

`dspSession`

object

an object populated by in-widget JavaScript

`field`

FormField

field configuration object

for FormField

 



`id`

string

unique field ID (auto-generated upon field creation)

`type`

string

field type

`$scope`

StartingPointWizardScope

wizard scope

`startingPointData`

object

Work Item data (includes enabled and disabled fields)

Other aliases for this object:

  • `formFieldData`

  • `formState`

  • `spData`

`utils`

object

module with generic utility functions