Title: Validate the custom input field
Last modified: February 15, 2019

---

# Validate the custom input field

 *  [karlosuccess](https://wordpress.org/support/users/karlosuccess/)
 * (@karlosuccess)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/)
 * Hello,
 * Great plugin!!
 * I need to validate the custom input field to only accept numbers and not letters.
   Currently it only validates empty/not empty.
 * Is there a hook or filter?
 * If there is not a hook/filter, PLEASE tell me what files / folders I can look
   at?
 * Please
 * I really need it.
 * Thank you!!!

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

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11211973)
 * Hi, unfortunately at present this feature is not available in our plugin. I have
   submitted a request to the developers to investigate further your request.
 * Thank you
 *  Thread Starter [karlosuccess](https://wordpress.org/support/users/karlosuccess/)
 * (@karlosuccess)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11212308)
 * Can you please guide what files or folder to look at?
 * In what file do I find the code that validates if the input is empty or not?
 * Please I need this.
 * Just tell me the file(s).
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11216083)
 * Hi.
 * There is no easy way of doing this at the moment, unfortunately. Frontend validation
   is controlled by JavaScript and you can’t just simply override it without possibility
   to ruin something.
 * I have added your request to our inner ticketing system though. Validating custom
   field input by specific rules sounds like a good feature.
 *  Thread Starter [karlosuccess](https://wordpress.org/support/users/karlosuccess/)
 * (@karlosuccess)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11216524)
 * Alright sounds good! Maybe adding a filter or something.
 * Will be awaiting for it!
 * Thanks
 *  Thread Starter [karlosuccess](https://wordpress.org/support/users/karlosuccess/)
 * (@karlosuccess)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11216525)
 * It would be great is we can add our own validation rules. Ie, validate if input
   is a url. etc. Thanks
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11307455)
 * Hi. This functionality will be available in the upcoming version of the plugin.
 * You can use JavaScript RegExp in the settings to achieve what you want. We have
   also added “Numbers only” pre-defined validation rule so you can use it right
   away without the need to compose your own validation RegExp.
 * If you want to test this functionality before it is released, you can download
   testing version from plugin’s website.
 *  Plugin Contributor [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * (@alexanderfoxc)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11347416)
 * Current stable version 1.9.18 has this functionality implemented.
 * Let me know if you had a chance to test it.

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

The topic ‘Validate the custom input field’ is closed to new replies.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Alexander C.](https://wordpress.org/support/users/alexanderfoxc/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/validate-the-custom-input-field/#post-11347416)
 * Status: not resolved