Gantt Lightbox force specific time

Hello all,

Recently I started exploring DHTMLX’s Gant and I’m impressed with all the features.

For now, I have one thing I’d like to accomplish, but I can’t find it.
To be honest, I’m not a die-hard programmer.

I’ve created a Gantt chart that loads a JSON file of over 45,000 lines.
Also added the functionality to be able to create a task by dragging a rectangle in the graph (drag 'n drop).
In the Lightbox, I want to set the start time to 10:00 AM and the end time to 5:00 PM, which cannot be changed by the user.
If a solution would be that the user can only select a day, month and year in the Lightbox, and the times are added automatically in the background, that would also suit our needs.

As said before, I’m not a programmer but if someone could help me with this I would really appreciate it.

Hello Harold,
I think the easiest way to do that is to modify the dates in the onBeforeTaskUpdate event handler:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskupdate_event.html

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/klaj1tre

Hello Ramil,

Thank you, that works like a charm!

Kr,
Harold