I am validating the dates in below function. If the validation fails, then the form should not get submitted. I tried returning false in form onsubmit but it still gets subm
In my case i used pattern in input field and also gave maxlength.
What worked with me was, remove Length attribute from input field