Welcome to the LimeSurvey Community Forum

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

Disable HTLM spellcheck in text answers

  • Hermel
  • Hermel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago - 4 years 9 months ago #185996 by tpartner
Replied by tpartner on topic Disable HTLM spellcheck in text answers
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: 4 years 9 months ago by tpartner.
The following user(s) said Thank You: Hermel
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose