Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

124
Vistas
Hide this element error data filed for kendo picker?

Hello i got some problem i have manage to use kendo picker to make my date and display the date format is wrong but however i couldnt remove the error message alway when the format day is set correctly here what i mean in my picture below

enter image description here

When error it display this as this is not the correct format for date

enter image description here

However when i change my error format to the correct one is not removing the error message

enter image description here

Here my code for the kendo picker function

 $(function () {
 
             var viewModel = kendo.observable({
                 selectedDate: new Date(),
 
             });
             kendo.bind($("#change-date-collection1"), viewModel);
 
             $("#change-date-collection1").kendoValidator({
                 rules: {
                     // Implement your custom date validation.
                     dateValidation: function (input, params) {
 
                         if (input.is("[name='date']") && input.val() != "") {
                             
                             input.attr("data-datevalidation-msg","Not a valid date in dd/MM/YYYY format!");
 
                             var date = kendo.parseDate(input.val(), "dd/MM/yyyy");
                             if (date) {
                                 return true;
                              
                             }
                             return false;  
                         }
                         
                         return true;
                     }
                 },
                 messages: { //custom rules messages
                     datevalidation: function (input) {
                         // Return the message text.
                         return input.attr("data-val-datevalidation");
                     }
                 }
             });
         })

I would like that error be hide when the format is correct and show when the format is wrong for the date

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda