Basic Date validation in Lib guidedateinput field component - best practice | Community
Skip to main content
IainClucas
New Participant
May 8, 2023
Question

Basic Date validation in Lib guidedateinput field component - best practice

  • May 8, 2023
  • 1 reply
  • 490 views

We are using the guidedateinput component in a lot of our forms and we are looking for best practices to provide the basic date validation (ie Is it a valid date) It is looking like out of the box there is no validation in that it allows the 31st February to be entered. We do not want or expect the form editor to create a rule for every date field they use, so is there a way to attach the validation at the component level so that it validates before passing onto the rules editor to allow further checks (eg the date is this year)

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

IainClucas
New Participant
May 9, 2023

Debugging in the guideRuntime shows that the _parseDate is logging an invalid date, but this appears not to be handled anywhere. Is there something else that I would need to to to handle this and output an error message?