Custom Lightbox - children of form sections

I’m using a custom lightbox, similar to yours in this example :

I would like to disable ‘Details’ when a text is written in ‘Text’.
I managed to do it using jQuery : $('input[name=""]') .

But is there a way to do it with scheduler methods ? Like : scheduler.formSection()

Thank you for your help !


you can access this block using scheduler.formSection