Disable autofill - Developer

sunco 121 Reputation points

This has been asked multiple times but with no real/working answer

I have a html form and want to disable autofill/autocomplete

So far I have tried the autocomplete="off" in the form tag and in the input tag

Also I have disabled this three options in flags: Show Autofill predictions, Fill passwords on account selection, Show autofill signatures

Tried chaging the name/id of the form and also the inputs

In fact I have tried this plugin with no luck: jQuery.disableAutoFill plugin - User Guide (terrylinooo.github.io)

Btw. I want to disable this via developer, not flags.. can't tel every user to disable this

I'm using 107.0.1418.42

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,585 questions
{count} votes

Accepted answer
  1. ShiJieLi-MSFT 4,521 Reputation points Microsoft Vendor

    Hi @sunco ,

    Thanks for this sample. I have successfully reproduced this issue and Edge just kept auto-filling the 2 inputs. However, I edited this sample and replaced autocomplete="off" in User and Password with autocomplete="new-password". Now, Edge won't auto-fill the inputs for me as you can see in the pic (PS: I didn't delete anything.):260901-autocomplete-new-password.png

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Shijie Li

1 additional answer

Sort by: Most helpful
  1. Dillon Silzer 40,111 Reputation points

    Hi @sunco

    You will want to add the autocomplete="off" to each <input> tag as seen below:

            On:<input type="text" name="on" autocomplete="on">  
            Off: <input type="text" name="off" autocomplete="off">  
            <input type="submit">  

    Edge will then read the HTML and no longer show autocomplete in the second box (Off) as seen below:

    When the on input is selected:


    When the off input is selected:



    If this is helpful please accept answer.