Closed stephan-strate closed 2 years ago
Yeah, required doesn't work with any file fields.
Yeah, required doesn't work with any file fields.
Thanks for confirmation. Do you think this is something that can be fixed? Just want to ask before I dig into it.
It is somewhat tricky to fix as the form is also used to save existing data. I think it is possible to get it working, though.
Hi, any plans on fixing this? having the same problem
Duplicate of #418
Closing as duplicate.
Creating a file upload (frontend form) with
required: true
leads to form being not submittable (with file selected and without). Error in console:An invalid form control with name='' is not focusable.
. Tried to investigate it myself, but did not find any documentation on making dropzone fields required. In Grav documentation it is listed as a valid common attribute. It also marks the field as required using*
.Example code:
Versions: Grav: v1.7.6 Form: v5.0.0 (did not work in version before as well)