Hi all.
I want insert 3 different input type text in my lightbox on the same row with custom scheduler.form_blocks
For example:
This values are map to DB with different fields.
Name Last Name Address
Can you help me?
Thank you.
Sondra
Hi all.
I want insert 3 different input type text in my lightbox on the same row with custom scheduler.form_blocks
For example:
This values are map to DB with different fields.
Name Last Name Address
Can you help me?
Thank you.
Sondra
Check
docs.dhtmlx.com/doku.php?id=dhtm … om_editors
it shows how it can be done for two fields. Same approach can be used for any count of fields.
Hi Stanislav, thank you for answer.
I have build this 3 custom input type and seem to work.
scheduler.form_blocks["my_editor"]={
render:function(sns){
return "<div class='dhx_cal_ltext' style='height:60px;'>Nome <input type='text'><br/>Cognome <input type='text'><br/>Telefono <input type='text'></div>";
},
set_value:function(node,value,ev){
node.childNodes[1].value=value||"";
node.childNodes[4].value=ev.cognome||"";
node.childNodes[7].value=ev.telefono||"";
},
get_value:function(node,ev){
ev.cognome = node.childNodes[4].value;
ev.telefono = node.childNodes[7].value;
return node.childNodes[1].value;
},
focus:function(node){
var a=node.childNodes[1]; a.select(); a.focus();
}
}
But if I want the 3 input type in the same line I delete the tag
and I have an error.
Why ?
Thank You.
Sondra
Indexes in set_value and get_value need to be changed ( to 1,3,5 probably )