Editor datetime field, but allow text entry as well

Editor datetime field, but allow text entry as well

aaron.dunigan.atleeaaron.dunigan.atlee Posts: 20Questions: 7Answers: 0

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.

Sign In or Register to comment.