Hello Jill,
You can limit the number of selections in a core multiple choice question using a small JavaScript code inserted either in the text of the question, a block appearing in the quiz or the Additional HTML of the Site administration, depending on the desired extent of the code effect.
The code is simply:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
let $total = 0;
$("div.answer input[type=checkbox]").each(function(){
$(this).on('click', function(event) {
if (!$(this).is(":checked")) {
$total = $total - 1;
} else if ($total <= 2) {
$total = $total + 1 ;
} else {
event.preventDefault();
event.stopPropagation();
}
});
});
});
</script>
In the above code, the maximum number of selections is set to three on the line
} else if ($total <=2) }
The maximum number of selections can be easily changed by editing this line. For example, for a maximum of two selections, change the '2' to '1', for a maximum of four selections, change the '2' to '3', and so on.
With the above code, the student can select and deselect choices as long as there are only three. If three choices are selected, the student can deselect one choice but cannot select a fourth.
Please see https://moodleformulas.org/course/view.php?id=38§ion=16 ↗ where you will find the example below that you can try, as well as the question XML file containing the latest version of the code, if there have been any changes.
Do not hesitate to ask me for changes, modifications, etc. For example, would you have liked that students could not deselect their choice? Would you like a message to appear when a fourth selection is attempted, for example "You have selected three choices, you cannot select more."? Would you like the choices to be read when the student selects a choice?
References
-
British Broadcasting Corporation (BBC) - Why can't people with dyslexia do multiple choice?
-
International Dyslexia Association (IDA)
-
Wikipedia - Dyslexia
Dyslexia, also known as reading disorder, is a disorder characterized by difficulty reading in individuals with otherwise unaffected intelligence. Different people are affected to different degrees. Problems may include difficulties in spelling words, reading quickly, writing words, "sounding out" words in the head, pronouncing words when reading aloud and understanding what one reads. Often these difficulties are first noticed at school. When someone who previously could read loses their ability, it is known as "alexia". The difficulties are involuntary and people with this disorder have a normal desire to learn. People with dyslexia have higher rates of attention deficit hyperactivity disorder (ADHD), developmental language disorders, and difficulties with numbers. Dyslexia is believed to be caused by the interaction of genetic and environmental factors. Some cases run in families. Dyslexia that develops due to a traumatic brain injury, stroke, or dementia is called "acquired dyslexia". The underlying mechanisms of dyslexia result from differences within the brain's language processing. Dyslexia is diagnosed through a series of tests of memory, vision, spelling, and reading skills. Dyslexia is separate from reading difficulties caused by hearing or vision problems or by insufficient teaching or opportunity to learn.
Treatment involves adjusting teaching methods to meet the person's needs.While not curing the underlying problem, it may decrease the degree or impact of symptoms. Treatments targeting vision are not effective. Dyslexia is the most common learning disability and occurs in all areas of the world. It affects 3–7% of the population; however, up to 20% of the general population may have some degree of symptoms. While dyslexia is more often diagnosed in men, it has been suggested that it affects men and women equally. Some believe that dyslexia should be best considered as a different way of learning, with both benefits and downsides.