• Resolved richesio

    (@richesio)


    Hello,

    Is there any way to disable the autofill in Chrome?

    We sell ‘post caps’ for gates, but Google thinks these are ‘Post Codes’ (Zip Codes) and is showing these as a suggestion, when the entry is just a number.

    Can this is disabled?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Please be informed that it is browser depended. The autofill can be turned off from the user side. You can add the attribute ‘autocomplete’ in the input element by adding a custom script.

    Below is a sample code:

    add_action('wp_footer', 'thwepof_add_autocomplete', 99);
    function thwepof_add_autocomplete(){
      ?>
      <script type="text/javascript">
        (function($){
                $('#test_text').attr('autocomplete', 'off');
        })(jQuery, window, document)
      </script>
      <?php
    }

    Replace test_text with your field name.

    We hope this helps.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Diable autofill on Chrome?’ is closed to new replies.