-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.5
-
None
-
MOODLE_37_STABLE
-
MOODLE_38_STABLE
DESCRIPTION
Setting "Min. forced responses" in checkbox question type prevent setting max value to zero
Unable to set "Max. forced responses" to "zero" (unlimited/default) when "Min. forced responses" is set to "one", when using a checkbox question type on the Questionnaire module.
STEPS TO REPLICATE
1. Create a Questionnaire activity and then create a checkbox question.
2. In the Checkbox question settings, For the “Min. forced responses” set it to “1” and for the “Max forced responses” set it to “0” (default).
3. Finish creating the question and answers and then “save changes”
4. “edit” the question just created and notice that the “max forced responses” has been changed from “0” to “1” upon saving.
OBSERVED BEHAVIOR:
Upon saving changes when providing a “min forced response” number and leaving the “max forced responses” option set to 0 (unlimited/default), the Max forces response is automatically changed to match the Minimum forces responses selection. This is limiting the user to only be able to answer the exact number of selections set, instead of a minimum number of responses with no maximum.
EXPECTED BEHAVIOR:
According to the help documentation via the settings, “if only a min or max value is desired, just leave the other value to its default 0 value”. Which in our test scenario above, should force users to at least select a minimum of 1 choice (because that value was set), but have no cap on Maximum choices, because that value was left at the default “0”.