Start_date and end_date Lightbox validation


#1

Hello,

If I select end_date is less than start_date then end_date will be automatically set to start_date. I need to set validation alert if end_date is less than start_date. Please give me suggestions to resolve this problem.

Thank You
Arvind


#2

Hi,
You can do a validation in the onEventSave event. https://docs.dhtmlx.com/scheduler/api__scheduler_oneventsave_event.html
Check end_date value and “return false” in the handler when it’s necessary.