Obojobo

Obojobo

  • Authors
  • Developers
  • GitHub

› Authors Section Topics

Getting Started

  • Writing Your First Obojobo Document
  • OboXML Guide

Writing Assessments

  • Creating Your First Assessment
  • Assessment Scoring
  • Score Results Text

Assessments How To

  • Adding a Pre-Test
  • Displaying Remaining Attempts
  • Extra Credit & Penalties
  • Limiting Attempts
  • Locking Navigation
  • LTI Score Passback
  • New Questions for each Attempt
  • Post-Attempt Pages
  • Reviews & Question Feedback
  • Threshold Scoring
  • Triggers and Actions
  • Variables

Displaying Remaining Attempts

The number of attempts used and attempts remaining are available using Variables.

This example shows how to display it on a start attempt button using two assessment variables:

  • {{assessment:attemptsRemaining}}
  • {{assessment:attemptsAmount}}

Note: ActionButton’s label attribute does not support variables. Use of a textGroup is required.

<ObojoboDraftDoc>
  <Module>
    <Content> <!-- Pages of learning content --> </Content>
    <Assessment id="my-assessment" attempts="3">

      <Page>
        <ActionButton>
          <textGroup>
            <t>Start Attempt ({{assessment:attemptsRemaining}} remaining)</t>
          </textGroup>
          <triggers>
            <trigger type="onClick">
              <actions>
                <action type="assessment:startAttempt">
                  <value id="my-assessment" />
                </action>
              </actions>
            </trigger>
          </triggers>
        </ActionButton>
      </Page>

      <QuestionBank>
        <!-- ...-->
      </QuestionBank>

      <scoreActions>
        <scoreAction for="[0,100]">
          <Page>
            <p>You have {{assessment:attemptsRemaining}} out of {{assessment:attemptsAmount}} attempts remaining.</p>
            <ActionButton>
              <textGroup>
                <t>Start Attempt ({{assessment:attemptsRemaining}} remaining)</t>
              </textGroup>
              <triggers>
                <trigger type="onClick">
                  <actions>
                    <action type="assessment:startAttempt">
                      <value id="my-assessment" />
                    </action>
                  </actions>
                </trigger>
              </triggers>
            </ActionButton>
          </Page>
        </scoreAction>
      </scoreActions>

    </Assessment>
  </Module>
</ObojoboDraftDoc>
Visit Obojobo on GitHub
Obojobo
Obojobo™ ©2021 University of Central Florida