Magento 2 – How to remove the autocomplete on forms on checkout

If you need to remove the autocomplete on any form on checkout you need to overwrite the file that contains the form html and add the autocomplete=”off” attribute.


For example for the shipping address form you need to overwrite this file:



And add the autocomplete=”off” attribute like this:


<form autocomplete=”off” class="form form-shipping-address" id="co-shipping-form" data-bind="attr: {'data-hasrequired': $t('* Required Fields')}">


Now the autocomplete functionality is disabled for all of the fields of the “co-shipping-form”.


Leave a Reply