GessWurker
asked on
Fix validation so dates without trailing text fail validation
I need to prevent "orphan dates" being submitted in form. The attached form is prevents bad dates from being submitted, but it does not block entries that contain ONLY a date. All lines should have a valid date followed by some text.
Example: A line that only has a date, like this:
·12/12/2019
Should not pass validation.
These lines are good:
·10/23/2019 - test
·10/24/2019 - testing again
Here is test content (note, the bullet character must be included):
·10/23/2019 - test
·10/24/2019 - testing again
·10/01/2019 - here's another test
·12/03/2019 - sort this one too
·12/1/2019 - bad date should be caught
·12/12/2019
·12/x/2019
By the time all validation is done, all acceptable entries (i.e., valid date followed by text) should be accepted and properly sorted.
Who can help with this validation issue?
Thanks!
sort_test.htm
Example: A line that only has a date, like this:
·12/12/2019
Should not pass validation.
These lines are good:
·10/23/2019 - test
·10/24/2019 - testing again
Here is test content (note, the bullet character must be included):
·10/23/2019 - test
·10/24/2019 - testing again
·10/01/2019 - here's another test
·12/03/2019 - sort this one too
·12/1/2019 - bad date should be caught
·12/12/2019
·12/x/2019
By the time all validation is done, all acceptable entries (i.e., valid date followed by text) should be accepted and properly sorted.
Who can help with this validation issue?
Thanks!
sort_test.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Did the trick!
ASKER