Skip to content

End attempt interaction

3.2.21 End Attempt Interaction — a special interaction that immediately ends the current attempt. Typically used to let the candidate request a hint or model solution, or to move on in an adaptive item.

Unlike the other interactions on this site, qti-end-attempt-interaction extends plain LitElement, not the shared Interaction base — it’s a button, not a response-collecting control.

Example

<qti-end-attempt-interaction response-identifier="HINTREQUEST" title="Show hint"></qti-end-attempt-interaction>

Clicking it dispatches an end-attempt event (bubbles/composed) with detail: { responseIdentifier, countAttempt }. On its own — outside a qti-assessment-item/qti-test context — that’s all it does; the actual “end attempt” behavior (scoring, revealing feedback) is handled by whatever’s listening, such as test-navigation or an item’s own response processing.

qti-end-attempt-interaction

AttributeTypeDefaultNotes
response-identifierstringReported in the end-attempt event detail.
disabledboolean (reflect)false
count-attempt'true' | 'false'nullPer the QTI spec’s count-attempt characteristic — limits how many times this mechanism can be used (e.g. capping the number of hints).
titlestring'end attempt'The button’s label text.