Disable Auto Populate

Posted on 2006-03-23
Last Modified: 2012-06-27
Is there a way to disable the auto populate function client side so that when users are filling in forms it does not display previous form entries?

Thanks in advance
Question by:rockymagee
    LVL 4

    Expert Comment

    I'm assuming you talking about IE, Mozilla, or Netscape browsers automatically poulating the information in form fields. There isn't a really simple way to stop this, since it's happening client side you don't have much say.

    However, all hope is not lost. The way the auto populate works is by comparing a databse of form names and web pages to the currently viewed page. If it finds a match it displays a list of previously typed answers. To stop this from working you could write you server side script to randomley generate the field names every time the page is loaded. This would cause the form names to be diffrent ever single time the user visted the page. Here is some psuedo code to help out.

    string ibox1

    <input type='textbox' name=<% write ibox1 %>>
    LVL 5

    Accepted Solution

    Disabling it for Web content:
    For IE, use the AUTOCOMPLETE="off" attribute for INPUT and FORM field elements:

    For Mozilla/Firefox, it's disableAutoComplete = "true" (I haven't tested this one)

    or, you can disable it for each browser in the browser settings.
    LVL 4

    Expert Comment

    Dang, I thought I had seen somebody else do it like that, but for the life of me I could not google an answer. Well the above post should suit your needs.
    LVL 6

    Author Comment

    Simple as autocomplete=off ..... Nice !

    With further research I discovered the autocomplete=off works:

    For IE in both the <form> and individual <input> tags.

    For Firefox only in the <form> tag ;)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now