Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Server side error not shown client side

$
0
0

Hello,

 In the example you provide there is the same error. We have resolved it the following:

Example: 

container.find("[data-valmsg-for="+ name + "],[data-val-msg-for="+ name + "]")
         .replaceWith(validationMessageTmpl({ field: name, message: errors[0] }))

Our fix (notice the single quotes:

container.find("[data-valmsg-for='"+ name + "'],[data-val-msg-for='"+ name + "']")
    .replaceWith(fieldValidationErrorMessageTemplate({ field: name, message: errors[0] }));

Thanks for looking into it!

container.find("[data-valmsg-for='" + name + "'],[data-val-msg-for='" + name + "']")
    .replaceWith(fieldValidationErrorMessageTemplate({ field: name, message: errors[0] }));

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>