Prevent add task from nesting new task

Hi,

I’m using the add task on rows to add a new task at the same level as its parent.

Is it possible to not have the UI show this as a nested task? In my setup it shows as nested, and after I click save, it’s added to the same level as its parent.

I’d like to prevent the red box from happening and add the task directly to the same level before save.

Thanks,
testuser3

Hello,
You need to use custom “add” button that will create tasks on the same level. And you don’t use gantt.showLightbox() function, then the lightbox won’t be opened. Here is an example:
http://snippet.dhtmlx.com/0f60061be