Chrome Autocomplete

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Chrome Autocomplete

Postby jamiemurray » Wed Apr 19, 2023 8:44 am

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?
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Chrome Autocomplete

Postby martinch » Wed Apr 19, 2023 10:34 am

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.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK

Re: Chrome Autocomplete

Postby jamiemurray » Wed Apr 19, 2023 4:12 pm

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Chrome Autocomplete

Postby jamiemurray » Wed Apr 19, 2023 4:40 pm

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
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Chrome Autocomplete

Postby jamiemurray » Wed Apr 19, 2023 5:15 pm

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Chrome Autocomplete

Postby jamiemurray » Wed Apr 19, 2023 5:43 pm

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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
jamiemurray
 
Posts: 179
Joined: Fri Jan 11, 2013 4:12 pm
Location: Tenerife, Canary Islands

Re: Chrome Autocomplete

Postby martinch » Thu Apr 20, 2023 6:17 am

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.
Project Lead @ mDial -> https://github.com/TheBlode/mDial
martinch
 
Posts: 273
Joined: Thu Nov 15, 2018 9:14 am
Location: England, UK


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 49 guests