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 questionsThe 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.
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.
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.
Keep practicing
Take the free PLAT-DEV-210 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PLAT-DEV-210 practice questions
- Question 1A developer creates a DataRaptor Extract to retrieve data to pass to an external service.…
- Question 3When launching an OmniScript from an action on a FlexCard, the OmniScript displays, but n…
- Question 4A developer is creating a FlexCard for a new Community page. The FlexCard will display ca…
- Question 5A developer needs to use the COUNTIF function to process data entered by the user in an O…
- Question 6A developer is configuring the API URL in an HTTP Action element within an Integration pr…
- Question 7A developer needs to limit the output of a Data Mapper Extract to a maximum of one result…
