Categories | Question details Back To List | ||
Display custom create form and onEventCreation I'm trying to display my own form for creating an event. I am currently trying to handle the onEventCreation event and show my own form, but it doesn't appear as if the event is firing. Has anyone done something similar, is it even possible? Answer posted by Support on Sep 02, 2009 00:52 The best place for custom form placing is the showLightbox method - it is called each time when form need to be shown scheduler.showLightbox = function(id){ //here you can show any custom form }; >> I am currently trying to handle the onEventCreation event The correct name of event - onEventCreated Was it just a typo, or we have incorrect event naming somewhere in documentation? Answer posted by Chris on Sep 02, 2009 06:10 Yes the documentation is off, it's named correctly under the list of events but when clicking it to see the example it is wrong there. It seems that the showlightbox event is called when editing an existing event. I would like to display my own form instead of the event window that displays allowing you to enter some text. Answer posted by Support on Sep 02, 2009 10:30 You can use scheduler.config.details_on_create = true; scheduler.config.details_on_dblclick = true; it will force lightbox form rendering for both creating and edit operations. ( which means that showLightbox will be called in both cases ) Answer posted by Chris on Sep 02, 2009 12:28 Perfect, exactly what I needed thanks. |