Wordpress Contact Form 7 - How to get correct phone number?

admin

Administrator
Staff member
I am using contact form on wordpress website and it has phone number field. The issue I am having is even wrong number with 13, 14, character is also getting submitted.

<ol>
<li>How can I restrict it to submit only 10 digit numbers?</li>
<li>Is there any way I can add country code flag and code number by default someone filling the form.</li>
</ol>

Kindly suggest something, although I am not a coder but will give a try.