New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateField never validated as true, DatePicker shows up, form is not send #205
Comments
This could be because the format is not valid (requires /) rather than slashes. The custom script UserFormsValidation probably needs to pass the date locale. |
thanks! i solved it now by extending UserDefinedForm and handing over in the init function this: Requirements::javascript('userforms/thirdparty/jquery-validate/localization/methods_de.js'); |
Had the same issue with Norwegian, but just added the methods_no.min.js file. |
I'm noticing that DateField doesn't engage it's validation if tabbed into the first time, instead of clicked. This allows users to provide bad input (wrong date format, for example) which results in a validation issue. On my setup, this does not engage the normal validation error messages, and has been netting me lots of phone calls by confused users. Changing the method from 'click' to 'focus' on javascript/UserForm.js line 710 seems to resolve this error, and allow for keyboard-centric users to have an easier time. This may or may not be the solution to the original problem, but it seems related enough to be worthy of comment. |
To fix we need to make sure the correct jquery-validate localisation library is included for the current locale. |
This uses the browser date picker now. |
This issue occurs with DateField set as required Field. Set the Date via DatePicker, then press Send always brings up the DatePicker again like there was never set a Date.
The text was updated successfully, but these errors were encountered: