Adding a new node and validating one field by comparing to another
Trying to achieve the following:
I have an Event doctype, with a Start Date and an End Date. If an End Date is chosen, I want to validate it by comparison with the Start Date, checking that an earlier date has not been chosen.
I can only find regex validation options when setting up the Document Type, however.
Adding a new node and validating one field by comparing to another
Trying to achieve the following:
I have an Event doctype, with a Start Date and an End Date. If an End Date is chosen, I want to validate it by comparison with the Start Date, checking that an earlier date has not been chosen.
I can only find regex validation options when setting up the Document Type, however.
How would I go about doing this?
you can only validate a single property and not another property's value, you could however:
Both solutions would require some custom code, but it's quite straightforward to implement these.
Cheers,
/Dirk
is working on a reply...