Content from Data Design
Last updated
Last updated
Content from Data Design
is an output block that is used to generate content using a Data Design element as a template. The output is of type text and is compatible with Value Parameters of type text or of type any.
The generated content can be added to the page or form using the Set Content block.
Checkbox and Toggle Switch elements, used inside a Data Design element, need to be initialized using the Initialize Toggle Switch in Data Design, after they are added to the page or form.
Each generated instance of the same Data Design element can be made unique for user-interactivity or modifications using the ID and the optional ID2 value parameters. More on this below.
The block comes in two modes which are discussed below.
The Mode 1 version of the Content from Data Design block consists of the following (from top to bottom):
Element: a Selectable Input to choose the Data Design element to use as the template.
ID: Mandatory Value Parameter that accepts a text value representing a unique identifier that will be used to reference elements that are generated.
ID2: Optional Value Parameter that accepts a text value representing the secondary identifier that will be used to reference elements that are generated.
Data: Value Parameter Set consisting of named parameters. The named parameters must match the Placeholder Field names used in the data design. Selecting the Data Design element will automatically populate the set with the Placeholder Field names. You can also use the gear icon to manually add/remove parameters.
The Mode 2 version of the Content from Data Design block consists of the following (from top to bottom):
Element: a Selectable Input to choose the Data Design element to use as the template.
ID: Mandatory Value Parameter that accepts a text value representing a unique identifier that will be used to reference elements that are generated.
ID2: Optional Value Parameter that accepts a text value representing the secondary identifier that will be used to reference elements that are generated.
Data: Value Parameter that accepts an object value. The provided object must have properties with names that match the Placeholder Field names used in the data design.
The image below shows an example of Content from Data Design
(Mode 1). The Data Value Parameter Set in this case contains three Value Parameters whose values are set as shown. The names of these parameters are from the Placeholder Field names used in the selected Data Design (DataDesign8).
In the next example we see the Content from Data Design
(Mode 2) block. In this case the Data Value Parameter is attached to a Variable Value block configured to use the variable city info whose value is an object with property names matching the Placeholder Field names used in the selected Data Design (DataDesign8).
Both examples will have identical results with the output being attached to the Set Content block configured with the same element.