Hello,
I've added date time picker on a custom field within the editor, but the problem that every time I trigger an error on that composite field, the picker displays even there's no error with the date itself.
I've done it like so:
new Editor.DateTime($('input.date', this), $.extend({
format: conf.format, // can be undefined
i18n: that.i18n.datetime,
onChange: function () {
$('input.date', self).trigger('input');
$('input.date', self).trigger('change');
}
}, conf.opts));
How I can disable datetime picker from being shown completely even if there's an error with the date field?
Thanks in advance.