Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78670

Prevent using offline quizzes when sequential navigation is enabled

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-78670-401
    • MDL-78670-403
    • MDL-78670-main
    • Hide
      1. As admin, create a course
      2. Open the quiz settings screen and set "sequential navigation" to enabled by doing the following: Layout ► Show more... ► Navigation method equals to Sequential
      3. Confirm:
        •  That the option "Allow quiz to be attempted offline using the mobile app" is disabled (you can find it under Extra restrictions on attempts► Show more... ►Allow quiz to be attempted offline using the mobile app)
        • That the helper has the following text:

          If enabled, a mobile app user can download the quiz and attempt it offline.
          Note: It is not possible for a quiz to be attempted offline if it has a time limit, or requires a network address, or uses any question behaviour other than deferred feedback (with or without CBM), or uses sequential navigation.
          

      4. Now change the quiz navigation to not use Sequential by going to  Layout ► Show more... ► Navigation method
      5. Confirm:
        •  That the option "Allow quiz to be attempted offline using the mobile app" is not disabled and can be selected. The previous option can be found at Extra restrictions on attempts► Show more... ►Allow quiz to be attempted offline using the mobile app
      Show
      As admin, create a course Open the quiz settings screen and set "sequential navigation" to enabled by doing the following: Layout ► Show more... ► Navigation method equals to Sequential Confirm:  That the option "Allow quiz to be attempted offline using the mobile app" is disabled (you can find it under Extra restrictions on attempts► Show more... ►Allow quiz to be attempted offline using the mobile app ) That the helper has the following text: If enabled, a mobile app user can download the quiz and attempt it offline. Note: It is not possible for a quiz to be attempted offline if it has a time limit, or requires a network address, or uses any question behaviour other than deferred feedback (with or without CBM), or uses sequential navigation. Now change the quiz navigation to not use Sequential by going to  Layout ► Show more... ► Navigation method Confirm:  That the option "Allow quiz to be attempted offline using the mobile app" is not disabled and can be selected. The previous option can be found at Extra restrictions on attempts► Show more... ►Allow quiz to be attempted offline using the mobile app

      When sequential navigation is enabled a student must progress through the quiz in order and may not return to previous pages nor skip ahead. This functionality is not offline compatible as it would mean the Web Service should allow the student to download all the questions and that will generate major issues as they'd be able to guess the next questions.

      Right now the quiz settings web interface allows a teacher to enable it for offline use even if sequential navigation is forced.

      This is currently generating an exception in the app.

      The fix is quite simple
      1 . In mod/quiz/accessrule/offlineattempts/rule.php: validate_settings_form_fields function ,add an additional check in the existing if
      If navmethod === sequential the quiz can't be attempted offline
      2 . In mod/quiz/accessrule/offlineattempts/rule.php: add_settings_form_fields() method, add another disableIf for when the quiz/navmethod is set to "sequential"
      3. We should also update the in-line help strings to indicate the additional case:
      allowofflineattempts_help
      and
      offlineattemptserror

      adding something like "or uses sequential navigation"

            rodrigo.mady@moodle.com Rodrigo Mady
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 3 hours, 50 minutes
                2d 3h 50m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.