Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-2524

Add an option to make answers compulsory to Q&A questions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.4
    • Fix Version/s: 2.4, 2.3.5
    • Component/s: Tool QA
    • Labels:
      None

      Description

      We need an individual setting for each question to determine if it requires an compulsory answer or not.

      In author, when adding a new question we should have a checkbox (off by default) that determines if the question requires a compulsory answers (see attached image).

      If the option is checked, then when learners are viewing this question they cannot continue unless they enter an answer.

        Activity

        Hide
        fionam Fiona Malikoff added a comment -
        Added new column to database for the "required" field and added matching references to the code. Removed references to the partially implemented "optional" field. Authoring and monitoring both allow the user to set the required field.

        Learning will check the required status on the server (not in javascript). If a question hasn't been answered then it will display an error at the top of the screen. If the field contains html then it will consider that the question has been answered if:
        (a) something left when all the html tags are removed or
        (b) has <img> tag.

        The (b) option covers smileys and math formulas.
        Show
        fionam Fiona Malikoff added a comment - Added new column to database for the "required" field and added matching references to the code. Removed references to the partially implemented "optional" field. Authoring and monitoring both allow the user to set the required field. Learning will check the required status on the server (not in javascript). If a question hasn't been answered then it will display an error at the top of the screen. If the field contains html then it will consider that the question has been answered if: (a) something left when all the html tags are removed or (b) has <img> tag. The (b) option covers smileys and math formulas.
        Hide
        fionam Fiona Malikoff added a comment -
        Three new language labels (already added to translation server).

        label.required.desc =This question requires an answer
        label.required =(Required)
        error.required=You must answer Question {0}.
        Show
        fionam Fiona Malikoff added a comment - Three new language labels (already added to translation server). label.required.desc =This question requires an answer label.required =(Required) error.required=You must answer Question {0}.
        Hide
        ernieg Ernie Ghiglione added a comment -
        Tested and closed! Thanks Fiona
        Show
        ernieg Ernie Ghiglione added a comment - Tested and closed! Thanks Fiona
        Hide
        ernieg Ernie Ghiglione added a comment -
        done
        Show
        ernieg Ernie Ghiglione added a comment - done

          People

          • Assignee:
            ernieg Ernie Ghiglione
            Reporter:
            ernieg Ernie Ghiglione
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development