<cascadeMessage>
<cascadeMessage> is a continuation placeholder shown inside a
<cascade> when the next entry is still hidden. It takes the
place of the not-yet-revealed entry until that entry becomes visible, at which
point the message disappears.
Use <cascadeMessage> to give the learner a prompt — “Keep going”,
“Solve the previous step to continue”, etc. — without revealing the content
behind it.
Attributes and Properties
Attributes for <cascadeMessage>
Scoring (9)
aggregateScoresboolean. Default value: false. Whether to aggregate scores of scored descendants into a section credit-achieved value.
colorCorrectnessboolean. Default value: false. Whether to color-code answers in this section based on correctness.
displayDigitsForCreditAchievedinteger. Default value: 3. Number of significant digits to display for the section's credit achieved value.
forceIndividualAnswerColoringboolean. Default value: false. Whether to force per-answer color-correctness even when section-wide check work is enabled.
sectionWideCheckWorkboolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.
showCorrectnessboolean. Default value: false. Whether to display correctness indicators for answers in this section.
submitLabeltext. Default value: Check Work. Label for the section-wide submit button when correctness is shown.
submitLabelNoCorrectnesstext. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.
weightnumber. Default value: 1. Relative weight of this section when aggregated by an enclosing scored section.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <cascadeMessage name="c">
Scoring (6)
$c.aggregateScoresboolean. Whether scores of scored descendants are aggregated into this section's credit value.
$c.displayDigitsForCreditAchievedinteger. Number of significant digits to display for the section's credit achieved value.
$c.sectionWideCheckWorkboolean. Whether to show a single section-wide check-work button instead of per-answer buttons.
$c.submitLabeltext. Label for the section-wide submit button when correctness is shown.
$c.submitLabelNoCorrectnesstext. Label for the section-wide submit button when correctness is not shown.
$c.weightnumber. Relative weight of this section when aggregated by an enclosing scored section.
Other (7)
$c.creditAchievednumber. Aggregate credit achieved (between 0 and 1) for scored descendants of this section.
$c.disabledboolean. Whether this component is disabled and cannot be interacted with.
$c.fixedboolean. Whether this component's value is fixed and cannot be modified.
$c.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$c.percentCreditAchievednumber. Aggregate credit achieved as a percentage (between 0 and 100).
$c.texttext. The paragraph's text content.
Common to all components (4)
$c.doenetMLtext. The DoenetML source code that produced this component.
$c.hideboolean. Whether to hide this component from the rendered output.
$c.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$c.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Between siblings of a <cascade>
While the first step is unanswered, the <cascadeMessage> appears in
place of the still-hidden second step. Once the first step is answered
correctly, the message disappears and Step 2 is revealed.
Example: Inside sections of a <cascade>
A <cascadeMessage> placed inside a still-hidden section serves as the
prompt shown in place of that section’s body. The cascade chooses the first
<cascadeMessage> that follows the last completed child, so authoring
one per section lets each section carry its own prompt.
Example: Single continuation tail
A single <cascadeMessage> placed at the end of the cascade serves as a
generic “more to come” prompt that appears between any pair of still-hidden
siblings, and disappears once every preceding child has been completed.