Salesforce Certified Omnistudio Developer free question 5 / 10 · Domain 3: Omniscripts
An Edit Block in an LWC Omniscript shows its entries as cards. Users must be able to click entries to select them, and the selection must be stored as a boolean value in the data JSON. How should the designer configure the Edit Block?
- Set Allow Edit on the Edit Block and name a Checkbox element in the Sum Element property
- Set Select Mode on a Block element and name a Checkbox element in its Field Label
- Add a hidden Checkbox element, set Select Mode to Single or Multi, and name the checkbox
- Set the Edit Block Mode to Input and name a Checkbox element in the SVG Controlling Element
Show the answer and explanation
Answer: C
Why this is correct
Select modes let users change an Edit Block entry's boolean value in the data JSON by clicking the entries. The designer adds a Checkbox element to the Edit Block and names it, for example PaidInFull, and hides it from the Edit Block with the hide property set to true. In the Edit Block the designer sets Select Mode to Single or Multi and enters the checkbox name in the Checkbox Element Name field. Select Mode is available for the Cards, LongCards, and Table modes.
Why the other options are wrong
"Set Allow Edit on the Edit Block and name a Checkbox element in the Sum Element property" … Allow Edit gives users the action that edits an entry, and the Sum Element displays the value of a formula placed outside the Edit Block. Neither one stores a selection.
"Set Select Mode on a Block element and name a Checkbox element in its Field Label" … Select Mode is a property of the Edit Block in an LWC Omniscript. A Block element does not offer it.
"Set the Edit Block Mode to Input and name a Checkbox element in the SVG Controlling Element" … Select Mode is available for the Cards, LongCards, and Table modes. The SVG Controlling Element names a Text element that controls an alternative icon.
Key points
Select Mode needs three parts: a Checkbox element in the block, Select Mode set to Single or Multi, and the checkbox name in Checkbox Element Name.