• Resolved diemano

    (@diemano)


    Hi, first I would like to thank you for the plugin!

    I have a name and whatsapp capture form. For the whatsapp number I need to get exactly the 11 digits (00) 00000 0000. The plugin prevents entering more than 11 digits, but if less than 11 digits are entered, the form is sent, I tested with (83)99883 only and sent . I put the minlenght=11 but it didn’t work it kept sending.

    I would like the field to only allow sending with 11 digits, neither more nor less.

    Here’s the form I’m using.

    <div class=”form-prin”>[text* nome1 class:campo_form placeholder “Digite o seu nome”][tel* telef1 minlength:11 maxlength:140 class:campo_form class:phone placeholder “Whatsapp”][submit class:btn_form “Agendar Avalia??o”]</div>

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ivan Petermann

    (@ivanpetermann)

    Hi @diemano,

    Please try the code below.

    <div class="form-prin">[text* nome1 class:campo_form placeholder "Digite o seu nome"][tel* telef1 minlength:16 maxlength:16 class:campo_form class:phone_custom placeholder "WhatsApp"][submit class:btn_form "Agendar Avalia??o"]</div>
    <script type="text/javascript">
    jQuery(document).ready(function($){
        $(".phone_custom").mask("(00) 0 0000-0000");
    });
    </script>

    Thanks for using my plugin.

    Thread Starter diemano

    (@diemano)

    Thank you very much! It worked perfectly fine. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minimal size in the phone field’ is closed to new replies.