Support » Plugin: cformsII » data field validation

  • Resolved gregglowrimore

    (@gregglowrimore)


    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

    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

    (@bgermann)

    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

    (@bgermann)

    The debug output is available on the top bar at global settings. It cannot be disabled, so you should see it.

    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.