1

Is there a way to prevent autocorrection within Microsoft's bot framework's Web Chat?

Raphael Rafatpanah
  • 19,082
  • 25
  • 92
  • 158

1 Answers1

3

It turns out that autocomplete/autocorrect/spellcheck/etc. are browser features and are completely independent of webchat.

This worked for me:

<script>
  var textbox = document.querySelector('.wc-textbox')

  textbox.setAttribute('autocomplete', 'off')
  textbox.setAttribute('autocorrect', 'off')
  textbox.setAttribute('autocapitalize', 'off')
  textbox.setAttribute('spellcheck', 'false') 
</script>

Disable spell-checking on HTML textfields

Raphael Rafatpanah
  • 19,082
  • 25
  • 92
  • 158