Below code snippet shows the way I 've tried so far:
$('#events-holidays-calendar').ejSchedule({
"width": "100%",
"height": "500px",
"currentDate": new Date(2021, 10, 1),
"appointmentSettings": {
"dataSource": [{
"id": 1,
"subject": "Holiday",
"start_time": "2021-01-02 00:00:00",
"end_time": "2021-01-02 23:59:59",
"description": null,
"all_day": 1,
"recurrence": 0,
"created_at": "2021-01-07T00:02:40.000000Z",
"updated_at": "2021-01-07T00:02:40.000000Z",
"deleted_at": null
}
...
],
id: "id",
subject: {field: "subject", validationRules: {required: true}}, //validation for subject field
startTime: "start_time",
endTime: "end_time",
allDay: "all_day",
description: "description",
recurrence: "recurrence",
editFutureEventsOnly: true
},
"views": ["Month"],
"showAppointmentNavigator": false,
"showTimeZoneFields": false,
"dateFormat": "yyyy-MM-dd",
"firstDayOfWeek": "Monday"
});But I got no any validation errors in the event window or quick window submission. It keeps accepting empty subject field.
I would appreciate any help or suggestions to solve this problem.