Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Edge autocomplete=off not working is there a fix? If I set autocomplete to off at the form or control level Chrome honors it and no popup suggesting values open. However, Edge does not honor this attribute and always suggests previous data.

If there a different setting to make Edge turn off the auofill/autocomplete?

What I have tried:

<form id="Form1" method="post" runat="server" autocomplete="off">
Posted
Updated 18-Jul-22 5:06am
v2
Comments
Patrice T 18-Jul-22 10:41am    
Why don't you ask MS ?
We are not their support service !

1 solution

It works, just not how you think it does. Edge can do some "helping the user" by trying to figure out what your form fields are looking for and filling in the information even if autocomplete="off" is specified..

No, you cannot turn this off from your page or code.

What you can do depends on what the rest of your form content looks like. There's little tricks like this to fool Edge:
HTML
<span>First Name:</span>

is replaced with
HTML
<span>First N<span class="hiddenSpan">bla</span>ame:</span>
 
Share this answer
 
Comments
ehwash 18-Jul-22 11:26am    
Thanks, that works. How odd.
ehwash 18-Jul-22 11:27am    
Is there any official documentation on this behavior? I need to show a customer
Dave Kreskowiak 18-Jul-22 11:28am    
No, there isn't. This is something the community figured out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900