Automatically set end date in scheduler


Whenever I set end date less than start date, in event save event it automatically set end date grater than start date.

I want to check validation and fire message when this type of thing happened. When it automatically set the person have no idea it is set right or wrong.

I used dhtmlxscheduler_all_timed.js to display multiple days events.

Will you please guide us for this error?

This question is already raised in the following link
end_date set to start_date + 5 minutes if it’s before start


Hello @dhimmartejas

Please use onEventSave event to validate the lightbox values when the user clicks on the Save button.

I created a snippet to demonstrate how to do it and show the error message when StartDate > EndDate.