This will work for tel kind fields. if you wish to use number or textual content fields, you'll need to change 'wpcf7_validate_tel' inside the filter param in addition to the code.
This dedicate isn't going to belong https://jimywqp239573.activoblog.com/30922211/5-simple-statements-about-contact-form-7-telephone-number-validation-explained