Invalid Error in DMX Date Validator for HTML5 Date Input

You can try by overriding the default validator rule, add following javascript after the dmxValidator.js.

dmx.rules.max.validity = function(element, param) {
  if (element.type == 'date') {
    return element.value <= param;
  }

  return +element.value <= +param;
}
1 Like