vitalets/x-editable

Don't want to return any string ..or is there any way to validate multiple input field show error just below input field

Opened this issue · 1 comments

hi @vitalets i want to validate some input but dont want to return string, how i can do
Actually i have multiple inputs fields and i want to show error just below the input field
validate: function(value) {
if (value === null || value === '') {
here i want to create new css
return '';
}
}

hi!
The easiest way is to return space:

validate: function(value) {
   if (value === null || value === '') {
      // show custom error and return space to avoid embeded error
      return ' ';
   }
}