а

Hide and show lightbox section


#1

hello again,
is that possible to hide and show the user input on lightbox section according to the another input?
I want to hide priority and time period if only the task type is project. help please!


#2

Hello Farroh,
There are three different lightbox configurations:
https://docs.dhtmlx.com/gantt/desktop__default_edit_form.html
Normal tasks and regular tasks have different sections by default:

So, if you modify the gantt.config.lightbox.sections property you specify the sections only for normal tasks:
http://snippet.dhtmlx.com/b2a272886

However, you can hide the lightbox section even for the same task types. For example, if a task has “In progress” status, the owner section is hidden:
https://snippet.dhtmlx.com/a2539ebbe
It happens only when you apply the changes, so you need to reopen the lightbox to hide or show the owner.