Flexcard listeners, session variables and public attributes
How to configure Flexcard Setup properties: pubsub, custom and Record change event listeners, session variables and where they render, public attributes (cfPropName, cf-kebab-case), multi-language custom labels, Omniscript support for parent, child and Omniscript-embedded cards, and custom LWCs inside and around Flexcards.
Configure advanced properties for Flexcards (Event Listeners, Session Variables, Public Attributes of Flexcards, multi-language, Omniscript, child Flexcard, custom LWCs).
~7 min read · 7 practice questions ·
What the exam expects
- Configure pubsub, custom and Record change event listeners and the actions they run.
- Create session variables and use them only in the fields that accept them.
- Create a public attribute and reference it from Lightning App Builder, Experience Builder, a custom LWC or an Omniscript.
- Turn on multi-language support and Omniscript support, and know what each requires of child cards.
- Embed a custom LWC in a Flexcard, and a Flexcard in a custom LWC with lightning-omnistudio-flexcard.
Key terms: event listener (a Setup entry that runs an action when an event arrives), session variable (a card-wide key-value read as {Session.key}), public attribute (a property set in a page builder, API name cfPropName), Omniscript support (the Setup toggle for cards that interact with an LWC Omniscript), lightning-omnistudio-flexcard (the wrapper that shows a Flexcard inside a custom LWC).
Key facts
- Detail
- Pubsub, Custom event, Record change
- Detail
- Action label, custom event input value, Field label/placeholder/output, Text
- Detail
- Can't be a data source value
- Detail
- Pascal case; API cfPropName; markup cf-kebab-case
- Detail
- Select lightningCommunity__Default
- Detail
- Child cards must have it too
- Detail
- true refreshes the card on Omniscript data change
- Detail
- Error at runtime only, not at deployment
- Why must a child Flexcard have Omniscript support when its parent does?
- When does a Record change listener ignore an edit made through an Experience Cloud page?
- Which name goes in an Omniscript Custom LWC element for a Flexcard named Claim Summary?
- When does a custom LWC on a Flexcard canvas render?
The questions are free to read. Answers with their sources and self-grading are included with the pack.
Keep reading with the Omnistudio Developer pack
- Core concepts
- Exam traps
- Worked scenario
The pack includes:
- All 46 lessons of the Omnistudio Developer guide, with reading progress
- Interactive decision walks and step-by-step sequence steppers
- Inline practice questions and one-click topic practice (7 questions for this lesson)
- An official source cited for every claim
- An AI tutor that answers from the guide
- Unlimited timed practice exams