Calendar Validation in Form,


#1

greetings,

i have tried to add required validation to a calendar form input field the issue that validation is not triggered for it while it is triggered for the reset of the form

var calendarDefault = app.calendar.create({
inputEl: ‘#demo-calendar-default’,
});`


#2

I had the same problem…

The only way around it is to manually check the fields… for example

$$(document).on('click', 'submit', function (e) {
  if (!$$('input')[0].value) {
    e.preventDefault();
    console.log('show error message!');
  } else {
    console.log('ajax request!');
  }
});