Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple date field comparison

Explorer ,
Oct 12, 2018 Oct 12, 2018

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.

screenshot_multipledatecomparisons.png

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

I appreciate any help provided.

TOPICS
Acrobat SDK and JavaScript , Windows
368
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2018 Oct 13, 2018

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 18, 2018 Oct 18, 2018
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines