How I do to force the browser to not store the html form field data?-Collection of common programming errors
As others have said, the answer is autocomple="off"
However I think it’s worth stating why it’s a good idea to use this in certain cases as some answers to this and duplicate questions have suggested it’s better not to turn if off.
Stopping browsers storing credit card numbers shouldn’t be left to users. Too many users won’t even realise it’s a problem.
It’s particularly important to turn it off on fields for credit card security codes. As this page states
“Never store the security code … its value depends on the presumption that the only way to supply it is to read it from the physical credit card, proving that the person supplying it actually holds the card.”
The problem is, if it’s a public computer (cyber cafe, library etc) it’s then easy for other users to steal your card details, and even on your own machine a malicious website could steal autocomplete data.