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

Allow a single option in a Choice activity

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Choice
    • Labels:
    • Testing Instructions:
      Hide

      Create a choice - only fill in one answer and save - make sure it allows a single answer choice.

      Create a choice - don't fill in any answers - make sure it forces the use of one answer.

      Show
      Create a choice - only fill in one answer and save - make sure it allows a single answer choice. Create a choice - don't fill in any answers - make sure it forces the use of one answer.
    • Workaround:
      Hide

      Use a quiz with one question and chain the Conditional Activities off that, after you've messed about doing custom calculations on the Gradebook to exclude this response. Blah.

      Show
      Use a quiz with one question and chain the Conditional Activities off that, after you've messed about doing custom calculations on the Gradebook to exclude this response. Blah.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull Master Branch:
      master_MDL-28410

      Description

      At the moment there is a requirement that at least two options are given in a Choice activity.

      Having the option to have only one option would be handy for situations where students are required to submit a confirmation (for example) that they have read the terms and conditions of the course (or similar) when used in tandem with a Conditional Activity setup for the rest of the course.

      And yes, before anyone points it out, I do realise how naff a requirement this is, but I get asked how to do it quite often, and at the moment the only way is through a quiz, which is more complex and adds a record to the gradebook - a simple tweak to the Choice activity would make this much easier.

        Gliffy Diagrams

          Activity

          Hide
          salvetore Michael de Raadt added a comment -

          As another work-around couldn't you have two options, such as "I agree" and "I disagree"?

          Show
          salvetore Michael de Raadt added a comment - As another work-around couldn't you have two options, such as "I agree" and "I disagree"?
          Hide
          drex Mark Drechsler added a comment -

          Problem then is that I can't chain any conditional activities off the acceptance of the terms - the best I can do is chain it off the response of either kind, i.e. even if a student says 'no' they can still participate in the course, which kinda defeats the purpose...

          Show
          drex Mark Drechsler added a comment - Problem then is that I can't chain any conditional activities off the acceptance of the terms - the best I can do is chain it off the response of either kind, i.e. even if a student says 'no' they can still participate in the course, which kinda defeats the purpose...
          Hide
          danmarsden Dan Marsden added a comment -

          Hi Mark! - makes sense to me - I'll try to get to this later this week.

          Michael - I notice your use of the Priority field in the tracker differs from the docs:
          http://docs.moodle.org/dev/Using_Tracker#Tracker_fields
          could you please update the docs to follow whatever priority means in the tracker now? - thanks!

          Show
          danmarsden Dan Marsden added a comment - Hi Mark! - makes sense to me - I'll try to get to this later this week. Michael - I notice your use of the Priority field in the tracker differs from the docs: http://docs.moodle.org/dev/Using_Tracker#Tracker_fields could you please update the docs to follow whatever priority means in the tracker now? - thanks!
          Hide
          mblake Michael Blake added a comment -

          This issue is affecting MP clients. Please give it priority.

          Show
          mblake Michael Blake added a comment - This issue is affecting MP clients. Please give it priority.
          Hide
          salvetore Michael de Raadt added a comment -

          Hi, Dan.

          If you are working on this, we'll leave it out of our sprint.

          Show
          salvetore Michael de Raadt added a comment - Hi, Dan. If you are working on this, we'll leave it out of our sprint.
          Hide
          danmarsden Dan Marsden added a comment -

          I'll take care of it this week - it's an easy fix - still looking for updated docs on the priority field though..

          Show
          danmarsden Dan Marsden added a comment - I'll take care of it this week - it's an easy fix - still looking for updated docs on the priority field though..
          Hide
          skodak Petr Skoda added a comment -

          We can not remove existing strings from stable branches, only from dev. Adding is fine.

          Show
          skodak Petr Skoda added a comment - We can not remove existing strings from stable branches, only from dev. Adding is fine.
          Hide
          danmarsden Dan Marsden added a comment -

          updated 2.1 and 2.0 stable branches keeping old string.

          Show
          danmarsden Dan Marsden added a comment - updated 2.1 and 2.0 stable branches keeping old string.
          Hide
          skodak Petr Skoda added a comment -

          Integrated, thanks.

          Show
          skodak Petr Skoda added a comment - Integrated, thanks.
          Hide
          rwijaya Rossiani Wijaya added a comment -

          This looks great.

          Test passed.

          Show
          rwijaya Rossiani Wijaya added a comment - This looks great. Test passed.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/11