How to Disable Personal Info Autofill Suggestions in Edge for a Web Application

jorge ramirez galvan 20 Reputation points
2025-02-11T14:53:05.3466667+00:00

Hello,

I'm a developer working on a web application, and I've encountered an issue with Microsoft Edge's autofill suggestions for personal data (such as names, addresses, and emails). These suggestions interfere with certain input fields in my application, causing unintended behavior.

I have tried several approaches to disable autofill, but each comes with its own drawbacks:

  1. Setting autocomplete="one-time-code" – This prevents autofill but causes mobile devices to open a numeric keyboard, which is not ideal.
  2. Setting autocomplete="new-password" – This also prevents autofill but negatively impacts accessibility.
  3. Using a random string for the autocomplete attribute – This works for now, but it may not be a future-proof solution as Edge updates could bypass it. Additionally, it has accessibility concerns.
  4. Disabling autofill dynamically with JavaScript – While effective, this significantly impacts accessibility.

Is there an official or recommended way to completely disable autofill suggestions in Edge without compromising accessibility or relying on workarounds that may not be future-proof?

Any insights or best practices would be greatly appreciated.

Thank you!

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,503 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yu Zhou-MSFT 15,081 Reputation points Microsoft External Staff
    2025-02-12T02:59:34.9533333+00:00

    Hi @jorge ramirez galvan

    This feature is by design in Edge and there's no official way to disable autofill suggestions in Edge.

    I think you have already mentioned all the workarounds currently available. You could choose the one which suits you best. Besides, regarding your concern, please feel free to provide feedback or request a new feature to Edge team in Edge browser feedback hub: 3 dots Settings and more> Help and feedback> Send feedback.


    If the answer is the right solution, 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.

    Regards,

    Yu Zhou

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.