Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-846

adding a "no answer" button to radio button questions

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0
    • Fix Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 2.0
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Further to a request by Daniele in CONTRIB-774. I agree it would be a good feature to have a default-checked "No answer" button in all radio-button and yes/no questions. We already have a N/A (optional) button in Rate questions.

      Can Daniele and Mike please test the attached patch (for moodle 1.9) and comment on it.

      Please note that the appropriate $string['noanswer'] = 'No answer'; will have to be added to lang/.../questionnaire.php.
      I took the wording from a similar radio button in LimeSurvey. But moodle's Feedback module has a "Not selected" string. Which wording should we use?

      The extra "no answer" button only appears if the question is marked as "required". I think it does not make sense to display a No answer button if the question is "required".

      Joseph

      PS.- My patch includes a (minor) tidying up of the yes-no question type as well.

        Attachments

        1. err.png
          err.png
          7 kB
        2. patch01.txt
          5 kB
        3. questionnaire_patch02.txt
          6 kB

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08