PLAT-DEV-210 practice question 18 of 25

A developer needs to display read-only contact information in a OmniScript. The developer will format the information as a table, using merge codes to dynamically include first name, last name, street address, state, postal, code, and country from the data JSON. Which OmniScript element should the developer use to meet this requirement?

Full set: 103 questions
Answer options
A: Rich text Area
B: Text area
C: Text Block Correct answer
D: Edit Block
Correct Answer:
C. Text Block
Explanation

The Text Block element is the correct choice as it is specifically designed to display read-only text within an OmniScript. It supports rich text formatting via an embedded editor, which allows for the creation of HTML structures like tables. Crucially, it fully supports merge codes (e.g., %FirstName%, %LastName%) to dynamically pull and display data from the OmniScript's data JSON. This combination of features—read-only display, table formatting capability, and dynamic data injection via merge codes—directly fulfills all requirements of the scenario.

Why Incorrect

A. Rich text Area: This is an input element designed for user entry of formatted text. While it can be set to read-only, it is not the primary or most efficient element for display purposes.
B. Text area: This is a plain-text input element. It does not support the HTML table formatting required by the scenario.
D. Edit Block: This element is used to enable users to edit a group of fields, often within a loop. Its purpose is for data modification, which is the opposite of the read-only requirement.

References

1. Salesforce Help, OmniStudio Documentation, "Text Block Element": "Display text in an OmniScript. The Text Block element supports plain text and rich text through a WYSIWYG editor. You can also include merge fields from the OmniScript's data JSON." This confirms its purpose for display, support for rich text (which includes HTML tables), and use of merge codes.

2. Salesforce Help, OmniStudio Documentation, "Display Elements in OmniScripts": This document categorizes the Text Block as a "Display Element," reinforcing its intended use for showing information rather than capturing it. It contrasts with input elements like Text Area and Rich Text Area.

3. Salesforce Help, OmniStudio Documentation, "Access OmniScript Data JSON with Merge Codes": "Merge codes enable you to get and set values from the data JSON in OmniScript element properties." This document details the syntax (e.g., %NodeName%) used to pull data into elements like the Text Block, as required by the question.

Scroll to Top