Closed friartuck6000 closed 1 month ago
Thanks for the PR!
And as for the lack of FormKit validation, that's just a tricky one that we'd need a custom validator for, because technically the setting has a value of {date: '', timezone: ''}
for an empty date/time field control, otherwise adding 'validation' => 'required'
to the field settings schema would do.
Updated in 3.0.0
Describe the bug
When building/editing a Date field, it's possible for an editor to set Default Value to "Custom Date/Time", but leave the Default Date/Time setting empty:
When using the "Dropdowns" or "Text Inputs" Display Type, this results in an error:
Ideally, I think the Default Date/Time field would include the
required
validation and prevent an editor from saving the field in that state to begin with; but with that aside, I would have expected an empty custom date to ultimately behave the same as setting the default to "None".Steps to reproduce
Form settings
Craft CMS version
4.3.9
Plugin version
2.0.24
Multi-site?
No response
Additional context
No response