Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Disable HTLM spellcheck in text answers

More
6 years 2 months ago #185995 by Hermel
Is it possible to tell Limesurvey to set the spellcheck attribute for forms (e.g. long free answer) to false?


Thank you!
The topic has been locked.
More
6 years 2 months ago - 6 years 2 months ago #185996 by tpartner
LimeSurvey does not impose a spellcheck attribute but if you want to force it to false, two options:

1) Create a custom question theme and edit the <textarea> tag in answer.twig.

2) Extend your theme and add this to the end of custom.js:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
 
  $('input:text.form-control, textarea.form-control').attr('spellcheck', false);
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 2 months ago by tpartner.
The following user(s) said Thank You: Hermel
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose