validating lightbox when add button is clicked

how to validate custom and normal components in lightbox when user click on save button if validation returns false alertbox should show necessary error message any working example ?

you can catch ‘onEventSave’ event, that is thrown when user clicks save … event.html

Instead of alerts you can use dhtmlxMessage library, that is integrated into the scheduler … ssage.html