ejSchedule field validations are not working

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.

5 Replies 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team January 22, 2021 06:06 AM UTC

Hi Shanaka, 

Greetings from Syncfusion Support. 

We have checked the shared code snippets but validation is working properly at our end, please refer to the following link. 

Could you please share the following details if the issue persist still at your end to help you out? 
  • Which version of Syncfusion package you are using
  • In which platform you are using our scheduler
  • Try to replicate the issue in a sample

Regards, 
Nevitha 



SP shanaka perera January 22, 2021 06:44 AM UTC

Hi Nevitha,

Thank you for the reply. Yes I was referring the exact same link you have provided in your reply. But the issue is still exist. I have attached a file contains the issue herewith.




Attachment: issue_25e89920.zip


NR Nevitha Ravi Syncfusion Team January 22, 2021 12:40 PM UTC

Hi Sanaka, 

Thanks for sharing the sample. 

We have checked the reported problem in the shared sample and found that you have missed to add jquery.validate script files in your sample, please refer to the modified sample. 

script reference missed: 
           <script src="http://cdn.syncfusion.com/js/assets/external/jquery.validate.min.js"></script>     
           <script src="http://cdn.syncfusion.com/js/assets/external/jquery.validate.unobtrusive.min.js"></script> 

Please try the above sample and get back to us if you need any further assistance. 

Regards, 
Nevitha 


Marked as answer

SP shanaka perera January 22, 2021 01:05 PM UTC

Yes. its my bad. I have missed the validation scripts. Thank you very much for the solution. It is working fine now.


NR Nevitha Ravi Syncfusion Team January 22, 2021 01:08 PM UTC

Hi Sanaka, 
  
You are most welcome, please get back to us if you need any further assistance. We will happy to assist you.

Regards, 
Nevitha 


Loader.
Up arrow icon