• Resolved duke78

    (@duke78)


    When I insert a Birthday Field, the validation for the Date field doesn’t work.

    The Dropdown for Validation also doesn’t have a Date option.

    For example: Default value: dd.mm.yyyy

    Now, I can insert a birthdate like this: 30.12.199012 (with 6-digits year??).

    • This topic was modified 1 year, 6 months ago by duke78.
Viewing 1 replies (of 1 total)
  • Plugin Support Dina S.

    (@themehighsupport)

    Please be informed that we are using the HTML date type field and it is the default behaviour of Datetime local input field.

    Unfortunately, there is no direct option available in our plugin.?However, you can achieve your requirement?by?adding the below code in your child theme’s functions.php file.

    add_action('wp_footer','th_script_limit_date',999);
    function th_script_limit_date(){
       ?>
       <script>
       (function($){
    
           $('input[type="datetime-local"]').attr('max', '9999-12-31T23:59')
    
       })(jQuery, window, document)
       </script>
       <?php
    }

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Date Field Validation’ is closed to new replies.