Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Chrome Autofill creditcard

I have two fields in my form which Chrome falsely identified as credit card numbers (one is for a phone number and one is for a fax number). There are also two fields for firstnames which Chrome thinks are fields for credit card names and want to autofill. Is there some attribute I can use on these elements to tell Chrome that they are in fact not related to a credit card?

I've tried setting autocomplete="false" on the inputs. This removed the autofill options for address/contact information, but the credit card option was still there.

like image 359
Nait Avatar asked Jun 02 '16 14:06

Nait


People also ask

How do I stop Google from remembering my credit card?

1: Google Chrome Click the three dots in the top right corner and click on Settings. Click on Autofill on the left, then Payment methods on the right. Click on Save and fill payment methods to enable or disable Chrome from saving your credit card information.

Does Chrome save credit card info?

Chrome saves your autofill details (credit card, address, passwords) into a special folder on your computer that can be viewed and edited via the Settings option in the browser. So first I click the wrench icon in the top right corner to get there. I click the Settings option in the resulting window.

Where do I find Autofill cards in Chrome?

Open your Chrome browser. Click on the three dots at the top right corner. Go to Settings and find the Autofill section. To add an address, go to Addresses and more > Add, type the address and click Save.


2 Answers

I finally found a workaround! Set the autocomplete attribute as "cc-csc". That value is the CSC of a credit card and they are no allowed to store it! (for now...)

autocomplete="cc-csc"
like image 148
Guido Avatar answered Sep 30 '22 13:09

Guido


Have you tried:

autocomplete="nope"

At first glance this may look silly but ...

In some cases, the browser will keep suggesting autocompletion values even if the autocomplete attribute is set to off. This unexpected behavior can be quite puzzling for developers. The trick to really forcing the no-autocompletion is to assign a random string to the attribute --- https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

like image 25
Carlene Avatar answered Sep 30 '22 14:09

Carlene