Disable autofill - Developer

sunco 121 Reputation points
2022-11-14T03:53:37.867+00:00

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.
2,114 questions
{count} votes

Accepted answer
  1. ShiJieLi-MSFT 7,231 Reputation points Microsoft Vendor
    2022-11-16T09:22:55.073+00:00

    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 54,286 Reputation points
    2022-11-14T04:14:37.133+00:00

    Hi @sunco

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

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

    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:

    259992-image.png

    When the off input is selected:

    259973-image.png

    ---------------------------------------------

    If this is helpful please accept answer.