Can't set DatePicker as required
Hello,
I'm using the Form Builder on a custom Widget of mine. I can't set the DatePicker as required, a TextInput or a Select works as usual. When I click submit without filling the textinput the field says it's required, on the datepicker this doesn't happen.
2 Replies
when you call
$this->form->getState()
the form will validate
if you dont do that, then only frontend vailidation will apply
the date picker doesnt have frontend validation as it isnt a native HTML input typeah okay thanks that explains it, only worked with the admin panel right now that did all that stuff for me, thank you!