Title: Additional input validation?
Last modified: March 14, 2019

---

# Additional input validation?

 *  Resolved [RadiantPunch](https://wordpress.org/support/users/radiantpunch/)
 * (@radiantpunch)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/additional-input-validation/)
 * Hi! Just wondering if you plan on adding more types of input validation. The 
   one that I seem to need over and over is validation for phone numbers. Do you
   plan on adding build-in support for input[type=”tel”]? You could maybe incorporate
   something like this library: [https://github.com/googlei18n/libphonenumber](https://github.com/googlei18n/libphonenumber)
   
   Thanks!

Viewing 1 replies (of 1 total)

 *  [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/additional-input-validation/#post-11395510)
 * Hi RadiantPunch,
 * Not right now, but what I would suggest is to use a `pattern=""` attribute on
   your field element. This website has some example attribute values for phone 
   numbers: [http://html5pattern.com/Phones](http://html5pattern.com/Phones)
 * If you need to validate the field value server-side as well then please check
   the following code example for some pointers: [https://github.com/ibericode/html-forms-code-snippets/blob/master/custom-form-validation.php](https://github.com/ibericode/html-forms-code-snippets/blob/master/custom-form-validation.php)
 * Hope that helps. If not, let us know please.

Viewing 1 replies (of 1 total)

The topic ‘Additional input validation?’ is closed to new replies.

 * ![](https://ps.w.org/html-forms/assets/icon-256x256.png?rev=1754345)
 * [HTML Forms - Simple WordPress Forms Plugin](https://wordpress.org/plugins/html-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/html-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/html-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/html-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/html-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/html-forms/reviews/)

## Tags

 * [.tel](https://wordpress.org/support/topic-tag/tel/)
 * [phone](https://wordpress.org/support/topic-tag/phone/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 1 reply
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/additional-input-validation/#post-11395510)
 * Status: resolved