I was wondering if there is any way to disable autofill for credit card information. As I'm aware the autocomplete"off"
attribute does not work for CC options. I also tried to use: autocomplete="doNotAutoComplete"
.
Currently the textbox looks like this:
<asp:TextBoxID="_creditCardHolderNameTextBox"runat="server" MaxLength="100"/>
I've thought of two common solutions for the problem, renaming the ID to something random that Chrome can't pick up, however I don't want to do this for two reasons: 1) It's just bad practice 2) There are a lot of things in the code using this textbox and renaming it all causes heaps of errors and gets extremely messy really quickly.
The other thing was creating "Fake" CC Inputs as mentioned by Mike Nelson this post: Disabling Chrome Autofill
The only problem with this is the code I'm currently working with uses a repeater to generate the form, it's also extremely messy and volatile messing with it.
Any ideas?