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![]() |
Question answer | Replace the property with the Unique ID of the question. |
%c | Mobile device information |
|
%d | Submission date |
|
%e[Repeatable Section 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![]() |
|
%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![]() |
|
%s | FormSpace![]() |
|
%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![]() |
Properties |
---|---|
Questions with comments |
[comment] Returns the question comment instead of answer. |
Geo location |
|
Date and time |
|
Attachment |
|
Barcode |
|