Not sure if this is solely a conditional fields issue or a Date one.

Steps
1) Create a node with a checkbox and two date fields (required ISO date A and optional ISO date B)
2) Make Date A conditional on checking the box
3) Fill out the form, do not check the box. only Date B should appear. Fill in an invalid date (example, "to" date before "from" date) for Date B
4) Form is saved. No error messages

This happens because there is actually an error on the page for Date A, but conditional fields removes it after date_field_validate(), but by then Date has already bypassed validation since it checked for form_get_errors().

Also in the database it stores the unprocessed date (2014-12-30 08:00 instead of 2015-03-03T20:00:00)

Is there any way around this?

Comments

djdevin’s picture

Status: Active » Closed (duplicate)
Related issues: +#2322485: Failing because of other field's error