Overview
Use Show Text to display text overlays that guide learners with instructions, feedback, questions, and contextual information. Use Hide Text to remove text overlays when they are no longer needed. Text overlays support variable interpolation, allowing you to dynamically insert learner data and training state into your messages.Show Text
When to Use
- Display step-by-step instructions
- Show feedback on correct or incorrect answers
- Display step titles or progress messages
- Show congratulations or completion messages
- Provide context-specific guidance
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Display Text | String | Yes | The text content to show. Supports variable interpolation with {{variableName}} syntax |
Example: Simple Instruction
Example: With Variable Interpolation
Example: Feedback on Answer
Hide Text
When to Use
- Remove instructions before the next step
- Clear feedback messages to avoid confusion
- Clean up text overlays during transitions
- Reset UI state between states
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Target Action ID | String | Optional | The ID of a specific Show Text action to hide. Omit to hide all text overlays |
Example: Hide All Text
Example: Hide Specific Text
instruction-text-step-3 is hidden. Other text overlays remain visible.
Best Practices
Show text in onEntry
Use Show Text in the onEntry actions of a state to display instructions or prompts.
Use variable interpolation
Include learner data, scores, and component names using
{{variableName}} for personalized feedback.Variable Reference
Common variables available for interpolation:| Variable | Description |
|---|---|
{{userName}} | The learner’s name or ID |
{{score}} | The learner’s current score |
{{total}} | The total possible points |
{{stepNumber}} | The current step number |
{{timestamp}} | The current date/time |
{{customVariable}} | Any variable you define in your training |
Related Actions
- Show Panel — More complex UI with buttons, input fields, and media
- Show Image — Display diagrams or reference photos alongside text

