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

Multiple date field comparison

Explorer ,
Oct 12, 2018 Oct 12, 2018

Copy link to clipboard

Copied

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

Views

144

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Likes

Translate

Translate

Report

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