Title: data field validation
Last modified: March 7, 2019

---

# data field validation

 *  Resolved [gregglowrimore](https://wordpress.org/support/users/gregglowrimore/)
 * (@gregglowrimore)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/data-field-validation/)
 * I just upgraded my site’s reservation form that uses CForms2 (v15.0) for ski 
   rental reservations. I have a pickup date field and a return date field, both
   required. Both simply defined. Did the format of these field definitions change
   recently?
 * It’s defined this way:
 * > Pickup Date (48 hours in advance minimum)[id:pickup-date]|mm/dd/yyyy|^[0-9][
   > 0-9]/[0-9][0-9]/[0-9][0-9]
 * With a simple Title and a Custom Error message strings. What is wrong with the
   above? And every time a user hit submit now, the custom error message is displayed
   for these two fields, and the form is denied submission.
 * This form was working perfectly until yesterday. Customer called us several times
   to report the form would not validate simple date fields.
 * The form is at [http://www.crystalskishop.com/reservations](http://www.crystalskishop.com/reservations)
 * And I’ve read here that I should see a Debug Output option up under the Admin
   menu but I don’t seem to have that option. So I can’t send debug output right
   now. Is there a way to enable debug?

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

 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/data-field-validation/#post-11287357)
 * I guess the fields were JavaScript datepicker fields before you upgraded to 15.0.
   The datepicker was removed because now all major browsers support the HTML5 date
   type. The fields were converted to that. You can remove the regex as the format
   is checked by cformsII.
 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/data-field-validation/#post-11287370)
 * The debug output is available on the top bar at global settings. It cannot be
   disabled, so you should see it.
 *  Thread Starter [gregglowrimore](https://wordpress.org/support/users/gregglowrimore/)
 * (@gregglowrimore)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/data-field-validation/#post-11287388)
 * Removing the RegEx worked perfectly! Thanks!

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

The topic ‘data field validation’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [gregglowrimore](https://wordpress.org/support/users/gregglowrimore/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/data-field-validation/#post-11287388)
 * Status: resolved