Support » Plugin: Masks Form Fields » Problem with custom mask

  • Hello Ivan,

    i have trouble with setting my custom phone mask in Contact form 7.

    I would like ask you, if you provide me some example / code for my phone mask “000 000 000” please.

    I try modify your code from https://ivanpetermann.com/portfolio/masks-form-fields/ but dont work me, but I’m sure, mistake is on my site 🙂

    Thank you very much for your advice.

    With kind regards

    Marek

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello.

    I have a similar trouble. I have pthis code into my functions.php, but doesn’t work. Is there anything wrong with it?

    function custom_masks_form_fields() {
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function($){
                $("input[name='ggn']").mask('0000000000000');
                // $("input.class_name").mask('custom-mask');
            });
        </script>
        <?php
    }
     
    add_action('wp_footer', 'custom_masks_form_fields', 111);

    Thanks!

    Plugin Author Ivan Petermann

    (@ivanpetermann)

    Hello @kotromar

    Please reply with the URL of the page containing the form. So I can try to help you.

    Thanks.

    Plugin Author Ivan Petermann

    (@ivanpetermann)

    Hello @orodruim

    Please reply with the URL of the page containing the form. So I can try to help you. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with custom mask’ is closed to new replies.