BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
$appointments = new AppointmentSetting();
$appointments->dataSource($data)
->id('id')
->subject(json_decode('{"field":"subject","validationRules":{"required":true}}',true)) // Subject field validation
->startTime('start_time')->endTime('end_time')
->allDay('all_day')->description('description')->recurrence('recurrence');
$calendar = new Schedule('appointments-calendar');
$calendar->width('100%')->height('500px')
->currentDate(now())->appointmentSettings($appointments)->views(['Month'])
->showAppointmentNavigator(false)
->showTimeZoneFields(false)
->dateFormat('yyyy-MM-dd')
->firstDayOfWeek('Monday');
$('#appointments-calendar').ejSchedule({
"width": "100%",
"height": "500px",
"currentDate": new Date(1609910253000),
"appointmentSettings": {
"dataSource": [
// datasource here ..
],
"id": "id",
"subject": {"field": "subject", "validationRules": {"required": true}},
"startTime": "start_time",
"endTime": "end_time",
"allDay": "all_day",
"description": "description",
"recurrence": "recurrence"
},
"views": ["Month"],
"showAppointmentNavigator": false,
"showTimeZoneFields": false,
"dateFormat": "yyyy-MM-dd",
"firstDayOfWeek": "Monday"
});
eventSettings: {
dataSource: data,
fields: {
subject: {name: 'subject', validation: {required: true}},
},
....
},
The Appointment Field Validation feature in Syncfusion is a great way to ensure that data is entered correctly and accurately. It helps to prevent errors from occurring when entering data into the system. However, if the validation is not working properly, there are a few steps that can be taken to troubleshoot the issue. First, check to ensure the validation rules are set up correctly. If the rules are not set up properly, the validation will not work. Additionally, ensure that the data being entered is valid according to the validation rules. If the data is not valid, the validation will not work. Finally, check to ensure the validation is enabled in the system. If it is not enabled, the validation will not work. If all of these steps are taken, and the validation is still not working, it may be necessary to contact Syncfusion support for further assistance.