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

    (@ivanpetermann)

    Hi @daprop,

    You can try using the following script to implement a custom mask.

    <script type="text/javascript">
        jQuery(document).ready(function($){
            // To apply the custom mask, add the class 'phone_custom' to the desired input field in your form
            // Apply the mask '+38(0__) ___-__-__' for the custom phone number format
            // Added 'X' for fixed '0' in the formatting using translation
            // The {placeholder: '+38(0__) ___-__-__'} defines the guide text for the mask
            jQuery('input.phone_custom').mff_mask('+38(X00) 000-00-00', {
                translation: { 'X': { pattern: /[0]/, optional: false, fallback: '0'}},
                placeholder: "+38(0__) ___-__-__"
            });
        });
    </script>

    Click here?for more details on how to add custom mask.

    Should you need any further information, please do not hesitate to contact me. Thank you very much for your contact.

    Thread Starter daprop

    (@daprop)

    Thanks, it worked!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to make 0 required?’ is closed to new replies.