web-widget icon indicating copy to clipboard operation
web-widget copied to clipboard

Improving the Web Widget

Open grillol opened this issue 5 years ago • 8 comments

Hi Marcel, thanks for the job you have done.

I would like to improve the web widget action.

For example, I would like the user to fill in a list of values before sending the message (ex: work experience list), or to have an autocomplete option, etc.

Would it be possible to have minimal documentation of the code and some suggestions to contribute on this direction?

Thanks a lot.

grillol avatar Mar 01 '19 08:03 grillol

+1

danlopez00 avatar Jul 19 '19 18:07 danlopez00

+1

Dontorpedo avatar Apr 24 '20 17:04 Dontorpedo

I am interested to know if there are documentations available that will allow us to customize the widget, please?

arch2603 avatar May 25 '21 04:05 arch2603

absoulutely +1

Dontorpedo avatar May 25 '21 07:05 Dontorpedo

absolutely, I am currently experiencing issues trying to turn off the default autocomplete setting of the #userText input field (The #userText input field is the web widget input field, I inspected and found out the id attribute was userText)

teevon avatar Apr 02 '22 16:04 teevon

absolutely, I am currently experiencing issues trying to turn off the default autocomplete setting of the #userText input field (The #userText input field is the web widget input field, I inspected and found out the id attribute was userText)

You can add this after chat.js:

<script> window.addEventListener('load', function () { document.getElementById("userText").setAttribute("autocomplete","off"); }) </script>

adelmazza avatar Apr 20 '22 16:04 adelmazza

absolutely, I am currently experiencing issues trying to turn off the default autocomplete setting of the #userText input field (The #userText input field is the web widget input field, I inspected and found out the id attribute was userText)

You can add this after chat.js:

<script> window.addEventListener('load', function () { document.getElementById("userText").setAttribute("autocomplete","off"); }) </script>

@adelmazza I went to the chat.js and directly added set the autocomplete attribute to off, but I prefer your solution better, makes it more flexible for future changes, if the need arises, updated my code, thank you.

teevon avatar Apr 21 '22 07:04 teevon

I created a new package that solves this and several other issues https://www.npmjs.com/package/botman-extended-web-widget

EranGrin avatar Apr 22 '24 19:04 EranGrin