Is it possible to prevent spell checking on individual fields?
I believe the spell checker is actually a function of the browser being used but if possible we would like to turn if off for specific fields.
Thanks ~ Andrew
Is it possible to prevent spell checking on individual fields?
I believe the spell checker is actually a function of the browser being used but if possible we would like to turn if off for specific fields.
Thanks ~ Andrew
Hi Andrew,
You are right that the spell checker has to do with the browser rather than with Laserfiche Forms. For certain field types e.g. single line or email, you can set a spellcheck attribute like this:
$(document).ready(function() { $('#q1 input').attr({ "spellcheck" : "false", "autocorrect" : "off" }); });
You can also try setting attributes such as autocomplete="off" and autocapitalize="off" in the above example, particularly for mobile. Bear in mind that the functionality of each of these depends on the browser being used. For more information about spellcheck, see MDN Web docs.
Thanks for the info and link Karina. Most helpful. We were really hoping to get it to work for a multi-line entry. Thus far it's working only on single lines as you pointed out. Will have to read around some more and perhaps try a different browser flavor.
Tranks Again
Ah! In that case, for a multi-line field you would use textarea in place of input as shown below:
$('#q1 textarea').attr({
Happy to help!