Moodle
  1. Moodle
  2. MDL-28410

Allow a single option in a Choice activity

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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
    • Rank:
      18144

      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.

        Activity

        Hide
        Michael de Raadt added a comment -

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

        Show
        Michael de Raadt added a comment - As another work-around couldn't you have two options, such as "I agree" and "I disagree"?
        Hide
        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
        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
        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
        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
        Michael Blake added a comment -

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

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

        Hi, Dan.

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

        Show
        Michael de Raadt added a comment - Hi, Dan. If you are working on this, we'll leave it out of our sprint.
        Hide
        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
        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
        Petr Škoda added a comment -

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

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

        updated 2.1 and 2.0 stable branches keeping old string.

        Show
        Dan Marsden added a comment - updated 2.1 and 2.0 stable branches keeping old string.
        Hide
        Petr Škoda added a comment -

        Integrated, thanks.

        Show
        Petr Škoda added a comment - Integrated, thanks.
        Hide
        Rossiani Wijaya added a comment -

        This looks great.

        Test passed.

        Show
        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: