Click on Images to Expand Them
The contents of the Docupace Start wizard pages are created by placing fields of different types on each page. Term The term “field” in this case refers to any type of element placed on a page. To the end-user, it may look like a text field, a checkbox, a drop-down list, a button, an image, a section, a group of fields, or any of a number of elements. Currently, Docupace Start supports 20 types of fields, as described in the Field Types reference section.
Each field has settings that control its contents, its functionality, and its visualization. Some of these settings are common to almost all field types. These are addressed in this description and also in the Field Settings (common) reference section. For settings specific to each Field Type, see respective chapters of this guide.
In some instances (for fields labels and for rich-text fields) you can edit text directly in the Designer panel. When using this method, any text pasted will retain its original formatting.
Related Sections:
Table of Contents | ||||
---|---|---|---|---|
|
To place a new field on a page proceed as follows:
Step 1: Add a Single Text Field.
Rw ui steps macro | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Open Add Field panel.
Select the Single Text field and open Field Settings.
|
Field | Value | ||||
---|---|---|---|---|---|
Field Label | Owner Last Name | ||||
Use label as placeholder | Deselected | ||||
Placeholder | Type the owner's last name. | ||||
Meta Field Name |
| ||||
On value change | JS code that will be performed, when the value in this field has been changed. | ||||
Initial value | A JavaScript expression that provides a specific value that is used as the default value for this field. It is shown and selected as the first value for this field , when the user opens the page. E.g., a choice in a drop-down, that is initially selected, or a sting string in a text field that is already filled in. To enter a string or a value from choices, use quotes, e.g. "Yes" The JS expression's execution context has only 2 variables:
| ||||
Validations | Validations are described in-depth in a separate chapter of this guide. | ||||
Column Span |
| ||||
Enabled condition |
| ||||
Visibility Condition |
| ||||
Read-Only Condition |
| ||||
Default Value | Leave this field empty. | ||||
Required | Selected | ||||
New Line | Deselected | ||||
Size by content | Selected | ||||
CSS class names | Leave empty, to keep the default styling. |
Step 2: Apply the Changes.
Rw ui steps macro | ||
---|---|---|
Click Apply button in the bottom of the screen to close the Widget Design Screen and apply changes.
Click Save button in the top of the Widget Details Screen to save these changes. Click on the Widget configuration cogwheel icon to open Docupace Start and proceed adding fields to pages. |
Note |
---|
Note: Repeat these two steps, when you have made several changes to the wizard and need to save them. If you leave your work for a time and your session times out, changes will not be saved. |
How to Choose a Meta Field Name
Meta Field Name is the unique name for the data held within the field as it is referenced by code and in the database.
The Meta Field Name is a mandatory setting for all field types that may carry data to the system. If left empty for any of the fields, the wizard will not function properly. This issue is logged in the console. When a wizard doesn't load (a blank screen appears to the user), please check the console for this type of configuration error.
There are predefined field names in the PDF forms (client documents). Within the Docupace system most of these PDF names are mapped (cross-referenced) to a Meta Field Name in the BASE namespace.
If the data from your wizard must be mapped to a specific field in a PDF form, use the predefined values from the Quick Field Names Table. You may use either the name from the BASE namespace or the name used directly in the PDF form. If the mapping is working correctly, both cases should work.
A PDF form with field names visible
One way to find out what meta field names and corresponding values to use, so that they map correctly to a PDF form, is to open a relevant document from a Client subfolder. Turn on Admin Mode, by clicking the cogwheel icon.
Meta field names and their values can be seen by floating the mouse cursor over a field. They can be copied by right-clicking on the field.
The usual notation is objectName.propertyName.
Most of the objects and their properties are self-explanatory.
Info |
---|
Examples:
|
Meta Field Names and Values on a PDF form in Admin Mode
If the data is only used for the purposes of this wizard, e.g. as a selector for further transitions, then you may create any name for it. It can be a stand-alone field name, or it can be a property of an object defined within the wizard (e.g. defined in the onLoad actions in Wizard Settings).
Warning |
---|
Warning! Unless the name comes from the Quick field list, the Meta Field Name must start with a letter. It may contain letters, numbers and underscores ("_"). Other characters are not permitted and will prevent the wizard from functioning properly. |
Info |
---|
Examples:
|
How to Access Meta Field Values
Most of the Docupace wizard flexibility and functionality relies on getting current values from the Meta Fields. Meta Field values are used in a number of settings: enabled condition, visibility condition, read-only condition, on value change actions, custom validations, transition actions, for displaying dynamic text in Rich Text fields, for setting initial value, and many more.
When writing JS expressions or code, you can access Meta Field values in several ways.
Syntax | Description | Example | ||||
---|---|---|---|---|---|---|
| The recommended way how to access Meta Fields values. Prefix with | In visibility conditions, transition conditions, and similar, use this format:
In onEnter JavaScript use this format:
| ||||
| Use this syntax if you need to read the value of a field in a repeating group. Used in visibility, read-only and required conditions.
| For example, if you have a repeating group of phone numbers, which has a Phone Type, a Phone Number and an Extension, and you need to accommodate a business rule which says that Extension must be shown only if Phone Type is Business. In this case, the current number’s Type be accessed, which may be Phone1.Type, Phone2.Type, Phone3.Type, etc., depending on how many phones the repeating group has. The startingPointData object will not provide the correct Type. Use the following format:
| ||||
| Get the current page name, in which this Java Script function is run. |
| ||||
| Another way how to access Meta Fields values.
|
|
How to Track Changes to Meta Fields
To configure actions within a wizard that are based on changes made to a Meta Field, use these methods.
Description | Example | ||
---|---|---|---|
Use |
| ||
To track changes made to any field in an object, pass 'true' as a third parameter into the $watch method. |
|