Solved! Go to Solution.
Hello Sanford,
Thanks for the excellent response! Would you mind providing an example of the custom onValidate code and how to make the code dynamic per each browser?
-Andrew
I wouldn't write your own onValidate code -- you'll just end up reinventing the datepicker!
Instead use a third-party datepicker widget, making sure it does what you need (weekends, dateranges, etc.). Set the input to just text and the datepicker handles all the validation. Here's an example using the Kalendae widget (one of hundreds, maybe thousands of widgets out there, but one I love) on a Marketo form: https://codepen.io/figureone/pen/abOovRO