Reference Response Outputs in Template-Driven Documents
Template-driven documents include 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., Handlebars, and FreeMarker. This topic describes how to format the %o
DREL reference for each type of template-driven document.
Available on the Advanced and Enterprise tiers:
Use the conventions described in the following table to reference response outputs in DREL, Handlebars, and FreeMarker templates. In all cases:
-
Destination 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.
is the unique identifier of the parent Data Destination A Data Destination specifies where to send data from a submitted form. You can use Data Destinations to automate data sharing and storage, routing data to a specific service (such as email or cloud storage) in several different formats.. -
Key
identifies a specific value in the stored response.
Template type | Format |
---|---|
DREL | %o[Destination Unique ID][Key] |
FreeMarker | |
Handlebars |
{{outputs.<Destination Unique ID>.<Key>}} Note:When the response key of a key-value pair contains a period (.), you must enclose the key within square brackets ([ ]). For example, to reference the |
Info:Because responses vary with each third-party system, you might want to check the response output stored by a specific Data Destination. The topic View Destination Response Outputs in the Web Portal describes how to find out which key-value pairs A key-value pair is a set of two related data elements. The first element identifies the type of data, such as "name". The second element identifies the actual value, such as "Elizabeth". a Data Destination stored after it executed.