Title: Validating fields with wrong values
Last modified: August 24, 2016

---

# Validating fields with wrong values

 *  Resolved [Diego de Oliveira](https://wordpress.org/support/users/diegoliv/)
 * (@diegoliv)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/validating-fields-with-wrong-values/)
 * Hi, David, how are you?
 * I’ve been using Caldera Forms for a while and got a tricky problem to solve. 
   In a form, I have a field where the user should fill with his/her document number(
   we call it CPF or RG here in Brazil). I set up a custom mask for these fields
   and made them as required fields. But some users are filling these fields with
   only 0 characters (like 000.000.000-00), which of course are invalid.
 * My question is: is there a way to prevent the form to send when these fields 
   are filled with only zeros or invalid characters?
 * Thanks for your attention!
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

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

 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/validating-fields-with-wrong-values/#post-6076620)
 * Hi there,
 * its not really the aim of the masked input, although I should look at doing it
   in the future.
 * try this – [https://wordpress.org/plugins/conditional-fail-for-caldera-forms/](https://wordpress.org/plugins/conditional-fail-for-caldera-forms/)
   
   you can add it as a processor and have it kick in if the field doesn’t look right.
 *  Thread Starter [Diego de Oliveira](https://wordpress.org/support/users/diegoliv/)
 * (@diegoliv)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/validating-fields-with-wrong-values/#post-6076648)
 * Hi, David,
 * Thanks for the plugin, it works like a charm! It’s perfect for what I needed,
   simple and very usefull stuff.
 * Keep the nice work!

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

The topic ‘Validating fields with wrong values’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Diego de Oliveira](https://wordpress.org/support/users/diegoliv/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/validating-fields-with-wrong-values/#post-6076648)
 * Status: resolved