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

adding a "no answer" button to radio button questions

    XMLWordPrintable

Details

    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • 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

            rezeau Joseph Rézeau
            rezeau Joseph Rézeau
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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