Hide and show lightbox section

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!

Hello Farroh,
There are three different lightbox configurations:

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:

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:

It happens only when you apply the changes, so you need to reopen the lightbox to hide or show the owner.