• If you want control length.
    Working example
    [mask mask-45 minlength:13 maxlength:13 “+____________”]

    BUT!
    It won’t be working without small correction in plugin file cf7-phone-mask-field.php
    String #26
    add_filter( ‘wpcf7_validate_mask*’, ‘wpcf7mf_mask_validation_filter’, 10, 2 );
    replace with
    add_filter( ‘wpcf7_validate_mask’, ‘wpcf7mf_mask_validation_filter’, 10, 2 );
    You can then add another custom validation in function “wpcf7mf_mask_validation_filter”

  • The topic ‘Proper using on field validation + small bug’ is closed to new replies.