Viewing 1 replies (of 1 total)
  • Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi ketskater,

    As said at Description

    Currently the masking options are hard coded at file jquery.maskedinput-1.3.1.js, future version will address this.

    That said, change it at your own risk:

    (function($) {
    	$('.phone').mask('(99)9999-9999', { toggleMask: { alternateMask: '(99)999-999-999', erTrigger: '\\(11\\)9+', erUndo: '^(?!\\(11\\)9+)' } } );
    })(jQuery);

    mask (99) 9999-9999 is the initial mask
    alternateMask: (99)999-999-999 is the optional mask
    erTrigger: \(11\)9+ regular expression that will change to the alternate mask
    erUndo: ^(?!\(11\)9+) regular expression that will change back to the initial mask

    Regards,
    Gabriel

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7 Phone Module] how to change the inputfield?’ is closed to new replies.