Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

123
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda