Forum Discussion
Remove red squiggles for spellcheck on text entry.
Thanks for your response, but that code didn't work for me. I still get red squiggles for misspelled words in the text entry box. Does it matter that the misspelled words are pre-populated in the text entry box using the text entry variable?
Hi Nancy,
Ah strange, it worked for me in preview mode.
Preview mode when I test with the above code:
Preview mode without the JavaScript code:
This is how I applied it:
The script is definitely executing?
- NancyHyde-35f4313 days agoCommunity Member
It doesn't work when you pre-populate the text box, at least with multiple lines of text like I am doing. Here is an illustrative storyline file.
- Kingman2 days agoCommunity Member
Hi Nancy,
Sorry for the delayed response.
I see... I did test this on single line only. I didn't test on multiple lines.
If you haven't figured it out, try and replace the code with the following. It should cover both single and multiple line cases.
(function () { function disable() { document.querySelectorAll( 'input[data-dv_ref="input"], textarea.acc-textinput, textarea.acc-shadow-el' ).forEach(el => { el.spellcheck = false; el.autocomplete = "off"; el.autocorrect = "off"; el.autocapitalize = "off"; }); } // Run immediately disable(); // Re-run whenever Storyline injects or updates slide content new MutationObserver(disable).observe(document.body, { childList: true, subtree: true }); })();
Related Content
- 6 days ago
- 9 years ago