Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a quick script on how to can compare 2 dates and ensures that one is larger than the other.

Please put this script in a Custom HTML element in your form, amend the form field name accordingly. In this example, it is reading from the field "start_date" and "end_date".

Remember to enclose this coding in the <script type="text/javascript"> block.

...