Disable Auto Populate

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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 %>>
Disabling it for Web content:
For IE, use the AUTOCOMPLETE="off" attribute for INPUT and FORM field elements: http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/autocomplete.asp

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
rockymageeAuthor Commented:
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 ;)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.