Request: Add identifiers to lightbox input fields

Please add some identifiers to lightbox input fields. Right now, I have to use the following code to find some input fields in the lightbox:

var first = $('textarea', $('.dhx_cal_light .dhx_cal_lsection:contains("First Name")').parent());
var last = $('textarea', $('.dhx_cal_light .dhx_cal_lsection:contains("Last Name")').parent());
...

This code is extremely slow, especially on tablets or smartphones. You can automatically add an id to each field like this:

// example
var fieldName = 'First Name';

var fieldClass = 'lightbox-field-' + fieldName.replace(' ', '-');

field.addClass(fieldClass); // add the class 'lightbox-field-first-name' to this field

Of course, you can add an id or a class any other way, but it should be possible to find a specific field some way.

Hello,
you can use scheduler.formSection(controlName) to access controls of the lightbox.
for example, lightbox config:scheduler.config.lightbox.sections=[ {name:"description", height:130, map_to:"text", type:"textarea" , focus:true}, {name:"time", height:72, type:"time", map_to:"auto"} ];get text input

result object will have following properties:
control.node - root node of the control
control.header - label
control.control - input

Thanks Aliaksandr!!

It’s exactly what I needed.