botman / web-widget

MIT License
39 stars 69 forks source link

Improving the Web Widget #24

Open grillol opened 5 years ago

grillol commented 5 years ago

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.

danlopez00 commented 5 years ago

+1

Dontorpedo commented 4 years ago

+1

arch2603 commented 3 years ago

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

Dontorpedo commented 3 years ago

absoulutely +1

teevon commented 2 years ago

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)

adelmazza commented 2 years ago

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>

teevon commented 2 years ago

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.

EranGrin commented 5 months ago

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