Add spellcheck=false to a quiz form or textbox

Add spellcheck=false to a quiz form or textbox

Colin Matheson - මගින්
Number of replies: 13
Some teachers are requesting that the built in browser spellcheck be disabled for quizzes. I am trying to find out how to add the attribute to a quiz form or test quiz element. Any guidance would be appreciated.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Colin Matheson

Re: Add spellcheck=false to a quiz form or textbox

Rohit Agarwal - මගින්

I would also like to get a solution for the same. 

So far, the only way I could make this work is to use Safe Exam Browser (SEB) that has the option to disable spell check. However, SEB doesn't seem to work for question types that require audio input, hence it didn't work for me. 

It would be great if this can be a configuration in Moodle itself.



ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Rohit Agarwal

Re: Add spellcheck=false to a quiz form or textbox

Dominique Bauer - මගින්
Documentation writers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Plugin developers ගේ පින්තුරය
Hello Colin and Rohit,

Unless you are using an application that takes control of the browwer such as SEB, anyone, that is, teachers and computer savvy students, can change the spellcheck attribute since it is in the DOM.

So if you don't want to use SEB and don't worry too much about computer savvy students, you can add spellcheck = "false" to questions, quizzes or site with a single line of JavaScript code.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Dominique Bauer

Re: Add spellcheck=false to a quiz form or textbox

Dominique Bauer - මගින්
Documentation writers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Plugin developers ගේ පින්තුරය
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Dominique Bauer

Re: Add spellcheck=false to a quiz form or textbox

Rohit Agarwal - මගින්
Hi Dominique, thanks for your response. I tried the link about but it doesn't seem to work. I am getting the red squiggly lines in both the scenarios. I am using Google Chrome.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Colin Matheson

Re: Add spellcheck=false to a quiz form or textbox

Chris Kenniburg - මගින්
Plugin developers ගේ පින්තුරය
We did a render override in the Fordson theme to address this issue.
https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/qtype_shortanswer_renderer.php#L38

I believe you can download this file and place it in the same place in Boost and it will work. I highlighted the one line that we needed that whole file for.

Chris
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (4)
In reply to Chris Kenniburg

Re: Add spellcheck=false to a quiz form or textbox

Rohit Agarwal - මගින්
Thanks Chris, this worked for me! I will try to repeat this for essay type question as well.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Rohit Agarwal

Re: Add spellcheck=false to a quiz form or textbox

Marcus Green - මගින්
Core developers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Plugin developers ගේ පින්තුරය Testers ගේ පින්තුරය
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Marcus Green

Re: Add spellcheck=false to a quiz form or textbox

Tim Hunt - මගින්
Core developers ගේ පින්තුරය Documentation writers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Peer reviewers ගේ පින්තුරය Plugin developers ගේ පින්තුරය
You created a duplicate of MDL-49297 (which was easlly found by searchnig for 'spellcheck').
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Chris Kenniburg

Re: Add spellcheck=false to a quiz form or textbox

Pedro Caldeira - මගින්

I would like to try it, but can't  find this file on my installation 🙁

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Pedro Caldeira

Re: Add spellcheck=false to a quiz form or textbox

Pedro Caldeira - මගින්
this one: qtype_shortanswer_renderer.php i mean.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Pedro Caldeira

Re: Add spellcheck=false to a quiz form or textbox

Tim Hunt - මගින්
Core developers ගේ පින්තුරය Documentation writers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Peer reviewers ගේ පින්තුරය Plugin developers ගේ පින්තුරය
Chris was showing how they had overridden that renderer in their custom theme (see https://docs.moodle.org/dev/Overriding_a_renderer) to understand what is going on.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -