Docupace Start has a very flexible functionality because it allows writing JavaScript code for many parts of the wizard that you are building. You may define JavaScript functions in wizard onLoad actions, in onExit event handlers, in page onEnter actions, then use these functions and references to objects within the wizard in validation rules, in conditions for fields, within Rich Text fields, and many other places.
Many fields in Docupace Start will allow you to use or show values from the wizard’s objects. This is described in-depth in the How to Access Meta Field Values section.
To access these values, use double-bracketed interpolation with double curly braces on both sides of the value that you are referencing.
Examples:
{{wizardState.$createdWorkItem.id}} {{startingPointData.mySearchWord}} {{startingPointData['Owner1.FirstName'] + ' ' + startingPointData['Owner1.LastName']}} {{startingPointData['Rep1.RepNumber']}}
Available JavaScript variables will differ depending on the field execution context. Please see the Field Execution Context reference section for objects, properties and methods used within Docupace.
Important!
Names of objects and properties in JavaScript are case-sensitive. E.g. 'wizardstate'
and 'startingpointdata'
may not work, while 'wizardState'
and 'startingPointData'
will.
Operators used in JavaScript expressions: