Ashton
Ashton

Reputation: 329

An autocomplete="off" example works, my code autocomplete="off" does not?

I'm trying to resolve a Chrome autocomplete aggravation with my small web based work order form. I have tried to use autocomplete="off" in my html code, it doesn't work. When I 'Inspect' my page code in Chrome it always displays autocomplete="on" with autocomplete="off" or other wrong terms for off.

But this user's autocomplete="off" demo works perfectly for me. What am I missing?

My code:

<input name="contact_first"  style="border:1px solid #737373" 
class="required"  id="contact_first" value="<?php echo 
$row_contact['contact_first']; ?>" autocomplete="off" size="25" />

Example working code:

<label for="firstName2">First Name (WITH autocomplete):</label>
<input id="firstName2" name="firstName2" autocomplete="off">

I have actually cut and pasted the jsfiddle example code from the working example to a small test web form of mine, autocomplete does not stop.

This may affect other browsers also, but I use Chrome primarily.

Any advice appreciated.

Upvotes: 0

Views: 350

Answers (1)

Maarti
Maarti

Reputation: 3719

Try to use autocomplete="new-password" to disable the Chrome auto-fill functionality (different from basic autocomplete).

Upvotes: 1

Related Questions