Validate a date field based of another date field in form

Validate a date field based of another date field in form

rob1strob1st Posts: 74Questions: 18Answers: 0

I have three date fields in my form.

Date 1
Date 2
Date 3

I would like to make it so that Date 2 cannot be before date 1, and date 3 cannot be before Date 2 + 7 days.

Is there any functionality in datatables or editor to do this?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 54,909Questions: 1Answers: 8,606 Site admin
    Answer ✓

    A custom field validator can be used for this. It has access to all data submitted, not just the field's own value.

    Allan

  • rob1strob1st Posts: 74Questions: 18Answers: 0

    Thank you Allan!

Sign In or Register to comment.