Viewing 1 replies (of 1 total)
  • Dina S.

    (@themehighsupport)

    Hi,

    Could you please check after adding the below code in your child theme’s functions.php file?

    add_action('wp_footer','th_add_required_attribute',999);
    function th_add_required_attribute(){
    ?>
    <script>
    (function($){

    $(document).ready(function() {
    $('input[name="field_name"]').attr('required', true);
    });

    })(jQuery, window, document)
    </script>
    <?php
    }

    Please replace the field_name in the above code snippet with your corresponding field name.

    We hope this will help.

    Thank you!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.