Datatable Editor Clear Field Error

Datatable Editor Clear Field Error

loloskiloloski Posts: 46Questions: 5Answers: 1

Hi Guys,

Sorry if this has been asked for a few times, but I can't seems to find on the documentation on how to clear an error on a certain field, using jquery selector can do the trick and remove error has-error class but it's not clean though, Is there any function on datatable editor to accomplish this?

Thanks!!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    The field().error() method with an empty string passed into the error() part should clear it - e.g.:

    editor.field('myField').error('');
    

    Allan

  • loloskiloloski Posts: 46Questions: 5Answers: 1

    Yeah thanks

This discussion has been closed.