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

    (@gabriel-reguly)

    Hi,

    Indeed it is possible per jQuery function.

    I have made some changes to my code allow spaces for the input mask and it worked ok, but unfortunately it broke the alternate mask triggering code.

    So I’ll make a fix for that and next week there will be a new version.

    Regards,
    Gabriel

    Thread Starter insertcoinforjoy

    (@insertcoinforjoy)

    Thanks. Looking forward to it.

    Thread Starter insertcoinforjoy

    (@insertcoinforjoy)

    How’s the progress?

    Thread Starter insertcoinforjoy

    (@insertcoinforjoy)

    bump. :0

    m0rpheu5

    (@m0rpheu5)

    Hello guys, i′m having problems with the Mask, the problem is that there is no Mask hehehehe, i′m using this code [phone* phone-45 16/14 mask:(99)9999-9999 aMask:(99)99999-9999 reDo:(11)], so on change the numbers on the form the number will be showed like this (99)9999-9999 right? do i need to put the () and – or it will be automatic?? And if i type (11) this will change to (11)99999-9999, right?

    The problems is that is not show like this on the form, and i received as the same way on my email.

    What am i doing wrong?

    thanks

    m0rpheu5

    (@m0rpheu5)

    i found the problem, the problem is the plugin with W3 Total Cache, if i disable the W3TC the plugin works, if i enable it the plugin not works, what could be?

    Other thing, is working fine, but i need that when (11) i have 1 more space for number then use any other area code like (12) (13), i have this code:

    [phone phone-45 16/14 mask:(99)9999-9999 aMask:(99)99999-9999 reDo:(11)], but is not working, what could be?

    Thanks

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi,

    I was on vacation and this got delayed, next week I expect to release a new version.

    Regards,
    Gabriel

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi m0rpheu5,

    You are almost correct, your regular expression is not correct.

    It should be something like this:

    [phone phone-45 16/14 mask:(99)9999-9999 aMask:(99)99999-9999 reDo:\\(11\\)9+ reUndo:^(?!\\(11\\)9+)

    Regards,
    Gabriel

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi insertcoinforjoy,

    I had made some modifications to allow whitespaces in the mask but it broke the tag generator functionality, e.g., the shortcode would need to be written manually.

    Do you think that it would be an issue or are you ok with it?

    Regards,
    Gabriel

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi insertcoinforjoy,

    Any news on this issue?

    Or is not an issue anymore?

    Regards,
    Gabriel

    Thread Starter insertcoinforjoy

    (@insertcoinforjoy)

    Hey Gabriel,

    Made a temporary fix for this. I just explicitly declared the mask on the code itself.

    This is located in contact-form-7-phone-mask-module/phone.php.

    wp_localize_script( 'jquery-mask', '_wpcf7pm', array(
    	'id' => trim($id_att),
    	'mask' => "(999) 999-9999" /* $mask */,
    	'aMask' => $alternate_mask,
    	'reDo' => $re_do,
    	'reUndo' => $re_undo,
     ) );

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    What a clever solution.

    It is nice that you shared it.

    Regards,
    Gabriel

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘put space in mask?’ is closed to new replies.