Getting event data from "dhx_save_btn" function


Hi I am trying to query the database to determine if this new event should be saved. I think I am in the right spot in the dhtmlxscheduler.js.

so in the code below I am getting event data, but the data I think is original settings and not the user selected data before clicking the save button. What object would I use to get the current data in the sections?

vars.start_date has a date of - Mon Apr 22 2019 07:30:00 GMT-0400 (Eastern Daylight Time)
I am expecting this - Mon Apr 22 2019 13:00:00 GMT-0400 (Eastern Daylight Time)

thanks for any help!

var i = scheduler._getClassName(t);
if (t && i)
switch (i) {
case “dhx_save_btn”:

          let vars = scheduler._lame_copy(scheduler.getEvent(scheduler._lightbox_id));

          let startDate = vars.start_date;
          let endDate = vars.end_date;


Hi, @RonM

There is only one way to get the current data in the sections of the lightbox - get access to the element by using, for example, querySelector() and then get its value manually.