Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1252689

    If you use the autofill function on a mobile phone to fill out the enfold contact form, the city is entered in the date section see https://ibb.co/8g1c6MR
    How can this be blocked?

    #1253546

    Hey Fischpi,
    Sorry for the late reply and thanks for the link and screenshot.
    Please try this script, it changes the input “type” from “text” to “date”, in my tests with Chrome this stopped the autofill from showing.
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_datepicker_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".avia_datepicker.hasDatepicker").attr("type", "date");
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_datepicker_script');

    Then clear your browser cache and check.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.