mdbootstrap/bootstrap-templates

validation

sadhnaprajapati opened this issue · 1 comments

is there any way to add formula validation with error message.

Hey @sadhnaprajapati,

Currently, I don’t believe there is.

That being said, validation should be pretty easy to implement using the beforeItemAdd event.

$('input').on('beforeItemAdd', function(event) {
  // event.item: contains the item
  // event.cancel: set to true to prevent the item getting added
});

Hope this helps!