Page 1 of 1

Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 8:44 am
by jamiemurray
If a user has saved their login details on Chrome browser, upon login to vicidial the email field on the main form is populated with their user login, if their first call is a lead with no email, that lead's email is filled with the user login which creates an issue especially if there's integration at play and lead information is syncing with another system because their login isn't an email address, it will fail validation on most other systems.

So, I was thinking of adding autocomplete=off to all the fields on the main tab would help but that doesn't work and I tried every known way to do it including with form tags surronding the fields and setting role=presentation but Chrome still autofills the email field. :evil:

One way I found of avoiding it was to load the field as readonly and add onfocus="this.removeAttribute('readonly');" making the field editable as soon as the mouse is put over it but chrome still presents the dropdown with autofill values, something I think should be avoided in an application like VICIdial.

Any other suggestions?

Re: Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 10:34 am
by martinch
Hey jamie,

Yeah I see this a lot during testing and it's highly annoying! I've just clicked the cross every time without actually sorting the problem out permanently.

I'll take a look though. Think you can turn autofill off but maybe some agents might need it for other sites so would be nice to patch from within.

Cheers,
Martin.

Re: Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 4:12 pm
by jamiemurray
I agree that addressing this from within is the best way forward, it's impractical when there's hundreds of seats to address this with and half the agents barely know how to turn a computer on far less access a settings menu to disable autofill.

I'll continue to mess around and see if I can ensure it's disabled entirely on vicidial, when I achieve a working solution, I'll post a patch on mantis and feedback here.

Re: Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 4:40 pm
by jamiemurray
I found a surprisingly simple solution, a couple of hidden fields at the beginning that are auto-filled instead.
https://www.vicidial.org/VICIDIALmantis ... hp?id=1463

Re: Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 5:15 pm
by jamiemurray
The above stops the email field from being populated with the agent's username but doesn't disable the autofill dropdown that appears nor the prompts to save the information of a lead upon a call ending, I'm still looking for a solution for that.

Re: Chrome Autocomplete

PostPosted: Wed Apr 19, 2023 5:43 pm
by jamiemurray
OK, successfully got both the autofill of the agent login in the email field stopped AND the autofill prompt from showing up when clicking on a field.

Re: Chrome Autocomplete

PostPosted: Thu Apr 20, 2023 6:17 am
by martinch
Awesome, cheers jamie :) I'll test out the patch when I get time and feedback on Mantis. I took a peek at the code already and looks good to me.

Also, found this website which mentions many different ways of tackling it and mentions your fix too -> https://www.scotsscripts.com/blog/html-css-trick-how-to-turn-off-auto-complete.html

I usually have the problem on external scripts that have email field on it so whenever a call pops, I get the notice. Highly annoying!

Cheers man.