This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox is remembering input values

  • 7 ردود
  • 11 have this problem
  • 2 views
  • آخر ردّ كتبه cor-el

more options

I am having an issue with firefox caching input values. I have checked that this is not happening in other browsers. I found a couple articles that told me to add the autocomplete="off" attribute to my form or input element, but neither solved my issue.

One weird thing that is happening is, when I save a record the first time of being on the page, the values in the input are cleared, however anytime I try after the first, the values stay.

I am using an ajax form and using firefox 24.0. Also the input type="number" if that helps narrow it down at all.

Thanks in advance!

I am having an issue with firefox caching input values. I have checked that this is not happening in other browsers. I found a couple articles that told me to add the autocomplete="off" attribute to my form or input element, but neither solved my issue. One weird thing that is happening is, when I save a record the first time of being on the page, the values in the input are cleared, however anytime I try after the first, the values stay. I am using an ajax form and using firefox 24.0. Also the input type="number" if that helps narrow it down at all. Thanks in advance!

All Replies (7)

more options

Try the following:

  1. Go to the Firefox options
  2. Select the Privacy tab
  3. Select Use Custom Settings For History from the drop-down under the History section
  4. Uncheck the Remember Search And Form History checkbox

Please report back soon.

Modified by Wesley Branton

more options

Sorry, this did not fix the issue. Thanks for your reply though

more options

You probably need to do a hard reload (Ctrl+F5) to clear (reset) form entries.
With a normal reload Firefox will load input values from the cache.
Another possibility would be use a script to initialize form entries on loading the page.

more options

Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache. Note: This will temporarily log you out of all sites you're logged in to. To clear cache and cookies do the following:

  1. Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
  2. Under "Time range to clear", select "Everything".
  3. Now, click the arrow next to Details to toggle the Details list active.
  4. From the details list, check Cache and Cookies and uncheck everything else.
  5. Now click the Clear now button.

Further information can be found in the Clear your cache, history and other personal information in Firefox article.

Did this fix your problems? Please report back soon.

more options

Just a normal refresh will make the values go back to zero, but the issue is when I add a record to the database and send back the values as zero, the browser is still remembering the latest value. It is only being replaced with zero on the very first record that is being saved.

more options

Sorry, clearing the cache and cookies didn't work either. I am looking for a way to do this programmatically. I don't want to have to tell my user to change a setting in their browser if possible.

more options

Try to to ask advice at the mozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.