You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried using Customer Language Object for override error messages, but it doesn't work.
Below is the code I am trying.
var myLanguage = {
requiredFields: 'You have not answered all required fields'
};
$.validate({
language : myLanguage
});
The text was updated successfully, but these errors were encountered:
I used the key as 'requiredField' instead of 'requiredFields' (notice the 's') in the language variable. Now it works perfectly. I am not sure if there is a change in the new version, but if it changed then should be updated in the documentation also :)
I have tried using Customer Language Object for override error messages, but it doesn't work.
Below is the code I am trying.
var myLanguage = {
requiredFields: 'You have not answered all required fields'
};
$.validate({
language : myLanguage
});
The text was updated successfully, but these errors were encountered: