Editor datetime field, but allow text entry as well
Editor datetime field, but allow text entry as well
![aaron.dunigan.atlee](https://secure.gravatar.com/avatar/39d02ffa47c53c7af0f2429a8f08f01a/?default=https%3A%2F%2Fvanillicon.com%2F39d02ffa47c53c7af0f2429a8f08f01a_200.png&rating=g&size=120)
I have a standalone editor instance with a datetime
field, which does its job.
However, if the user types non-date text such as "N/A", I would like to just pass that along to the server. As it stands, the field passes the string "Invalid date"
instead.
Is there a way to bypass the date parser for any values that result in "Invalid date"
? I tried using getFormatter
but it looks like that gets called after the date is parsed.
Put another way, I want a field with datetime
's date picker and date formatting functionality, but that behaves like a text
field otherwise.