Skip to main content
Inspiring
Oct 12, 2018 8:16 PM UTC
Question

Multiple date field comparison

I have a form with multiple date fields (5) that need to be validated against one "first" date field. I haven't been able to get it to work with the scripts that I've found online.

Hopefully the screenshot that I'm including makes sense.

All of the date fields following "Date first case became ill" cannot be dates before that date.

I appreciate any help provided.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Oct 13, 2018 3:56 PM UTC

Have you tired to convert the date string to a format that is can be sorted?

One could also convert the dates to a unique numeric value where the value of each day maps to a ascending number line.

Translate
Inspiring
Oct 18, 2018 1:54 PM UTC

Thanks for your input. These sound like great ideas but I wouldn't know how to do that.

Could I be overcomplicating things and just need something in each subsequent field that checks its value against the first field?

Translate