Title: [Plugin: Contact Form 7] Validating Input As Numbers
Last modified: August 20, 2016

---

# [Plugin: Contact Form 7] Validating Input As Numbers

 *  [oren00](https://wordpress.org/support/users/oren00/)
 * (@oren00)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-validating-input-as-numbers/)
 * Hi there,
 * Excellent plug-in!
 * I’d like to create a field for capturing phone numbers and I’d like to restrict/
   validate the input as numbers for this field. I am currently not finding a method
   to implement this.
 * Thanks in advance for your help with this matter,
    Oren
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [epimazzo](https://wordpress.org/support/users/epimazzo/)
 * (@epimazzo)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-validating-input-as-numbers/#post-2845434)
 * Hi,
 * I’m on the same boat! Need to input numbers and can’t figure out how and which
   tag I have to use. Please help us! 🙂
 * thanks
 *  [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * (@biswajeet)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-validating-input-as-numbers/#post-2845442)
 * Hi, at present CF7 doesn’t support number/PH no# field validation out of the 
   box. You need to modify the code and write your own validation regex.
 * After you modified, you can see something [like this](http://img707.imageshack.us/img707/3227/cf7numfield.jpg)
 * However number field should be included with basic validation and may provide
   validation regex input field for the user as per requirement.
 * thanks!
 *  [epimazzo](https://wordpress.org/support/users/epimazzo/)
 * (@epimazzo)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-validating-input-as-numbers/#post-2845452)
 * Hi biswajeeT!
 * Thanks for clarify. Is there any file I can edit to generate such regex? Confess
   not being driving this very well. So, any tip would be really appreciated.
 * Thanks a lot.
 * Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Contact Form 7] Validating Input As Numbers’ is closed to new
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [epimazzo](https://wordpress.org/support/users/epimazzo/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-validating-input-as-numbers/#post-2845452)
 * Status: not resolved