Create new events from a custom form page not light box

I got a page for calendar to display events and another page is a form to create events but I need to save the event id in my table so I can display the events is it possible? can I call a function that create event or something? I need samples if possible.


You can create fully custom lightbox, please check this guide
Also there you can find a sample.

Sorry I don’t need a lightbox because I used two separate pages to display events and create
but anyway thanks I got it working.