[NEED HELP] I need to disable the autocorrections and suggestions from keyboard

Solved!!

To block the Autocorrection, Autocaptalize, etc (except suggestions), what it’s needed to do is to Run a Javascript that will search all inputs visible on screen and change the attribute, with the script:

const inputs = document.querySelectorAll('input');

inputs.forEach(input => {
        input.setAttribute('autocomplete', 'off')
	input.setAttribute('autocorrect', 'off')
	input.setAttribute('autocapitalize', 'off')
	input.setAttribute('spellcheck', false)
});  

If you also want to hide the suggestions, the solution I’ve found is to change every input to the password type, so Bubble will block it naturally, and add in the script to change the input for the text again:

const inputs = document.querySelectorAll('input');

inputs.forEach(input => {
            input.setAttribute("type","text")
        input.setAttribute('autocomplete', 'off')
	input.setAttribute('autocorrect', 'off')
	input.setAttribute('autocapitalize', 'off')
	input.setAttribute('spellcheck', false)
});  

I hope anyone who has the same problem I had had can solve it now. :smiley:

PS: The Run Javascript is from a toolbox plugin

run java block input

7 Likes