Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

how to disable datepicker to show on custom field error message (Datatables Editor)

$
0
0

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.


Viewing all articles
Browse latest Browse all 81728

Trending Articles