DREL Quick Reference
This topic provides a summary of all the Data Reference Expression Language (DREL Data Reference Expression Language (DREL) is used to get form data and metadata and add it to a string, such as dates, usernames, or answers to questions in forms.) references and properties supported by TrueContext.
To support existing integrations, some items will continue to use “prontoforms” or “pf” in the domain or code.
For more detailed information about what’s changing, visit https://support.truecontext.com/hc/en-us/articles/19516168513556
Available on all tiers:
Contents
Reference list
You can use the Data Reference Expression Language (DREL) to create expressions that reference information about form submissions, such as metadata and question answers. Use the following references to create expressions.
Info:The topic DREL Complete Reference List describes each DREL Reference in more detail.
Reference | Description | Properties |
---|---|---|
%a[Unique ID A Unique ID refers to the specific identifier of a question, form page, form section, or Data Destination. Unique IDs are used as reference points when pulling data for conditional logic, Analytics projects, Data Destinations, and Documents.] | Question answer | Replace the property with the Unique ID of the question. |
%c | Mobile device information |
|
%d | Submission date |
|
%e[Repeatable Section A Repeatable Section is a subform that contains a set of related questions. The data captured is “repeating”, because the field user can complete the same subform more than once, which creates multiple entries. Unique ID] | Answers from a Repeatable Section |
Replace the property with the Unique ID of the Repeatable Section. This returns all answers from all rows in a Repeatable Section. Info:To return more specific results or data from nested repeatable sections, add the properties described in the topic DREL Complete Reference List |
%f | Form name |
|
%g | Geo location |
|
%m | Dispatch The term "dispatch" refers to the act of sending a form to a mobile user or customer. Typically, a dispatched form includes some information pre-filled to give the recipient context for the work to be done. Dispatch can be manual or automated (using a Dispatch Data Destination or the TrueContext REST API). metadata |
|
%o[Destination Unique Identifier][key] |
Information stored as a |
In the DREL expression of a subsequent destination or its linked document, replace the first property with the Destination Unique Identifier of the initial destination that stores the response output. Replace the second property with a key returned as part of a key:value pair in the third-party system response body. You can find the key name in the third-party API documentation. The key specifies the stored value in the initial destination’s response output. |
%q[Unique ID] | Question text | Replace the property with the Unique ID of the question. |
%r | Form submission A form submission is a dispatched or submitted form. properties |
|
%s | FormSpace FormSpaces are where forms are stored and organized in the TrueContext Web Portal. A TrueContext Team may have multiple FormSpaces, depending on their needs. Admins can set FormSpace permissions to control which users have access to the forms in that FormSpace. name |
|
%t | Submission time |
|
%u | User information |
|
%v | Form version |
|
Multiple properties
You can use multiple properties with the %a reference for some question types. Add multiple properties after the [Unique ID] property.
Syntax: %a[Unique ID][SecondProperty]
Question type Question type refers to the format of a question in a form, such as a text field, dropdown, audio recording, or radio button, among others. Question types are chosen when adding questions to a form in the Form Builder. | Properties |
---|---|
Questions with comments |
[comment] Returns the question comment instead of answer. |
Geo location |
|
Date and time |
|
Attachment |
|
Barcode |
|