Skip to content
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

Date field marked as mandatory is not validated on submit #817

Closed
aguyfromdenmark opened this issue Jul 14, 2022 · 1 comment
Closed

Date field marked as mandatory is not validated on submit #817

aguyfromdenmark opened this issue Jul 14, 2022 · 1 comment

Comments

@aguyfromdenmark
Copy link

If you add an "answer" of the type "Date" to your form, mark it as mandatory, and then submit the form without picking any date, the validation does not fail on the date field.

Reproduction

Specifics

I have experienced this on both Umbraco Forms v.9.4.1 and v10.0.4.
Both sites running on Cloud.

Steps to reproduce

  1. Add an "answer" of type "Date" to a form.
  2. Mark the "answer" as "Mandatory"
  3. Submit the form without changing the date field.
  4. The validation will not mark the date field as invalid.

Expected result

The empty date field will throw a validation error on submit, preventing the form from submitting.

Actual result

Nothing. The date field still says it's valid.

@AndyButland
Copy link

Thanks, yes I can replicate this server-side (client-side validation seems to work as expected), and see why it's happening. Will get this fixed for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants