onclick event with custom lightbox

Is there a way to do onclick or onchange events with your custom lighbox features?



current code looks like this;



scheduler.config.lightbox.sections=[

    {name:“time”, height:72, type:“time”, map_to:“auto”},

    {name:“customerid”, height:21, type:“select”, map_to:“customerid”, options:[

    <?$i=1;

    while ($row = $db->nextRecord($cust_res)){

        $addcomma=’,’;

         if($i==$custcount){

        $addcomma="";

    }?>

    {key:"<?=$row['customerid'];?>", label:"<?=$row['firstname'] . " " . $row['lastname'];?>"}<?=$addcomma;?>

    <? $i++; }?>

    ]},

    {name:“service”, height:21, type:“select”, map_to:“serviceid”, options:[

    <?$j=1;

    while ($row_service = $db->nextRecord($serv_res)){

        $addcomma=’,’;

         if($j==$servcount){

        $addcomma="";

    }?>

    {key:"<?=$row_service['serviceid'];?>", label:"<?=$row_service['descript'];?>"}<?=$addcomma;?>

    <? $j++; }?>

    ]}

    ];



I want to be able to change the end time based on which service is selected. I can probably do it during the insert but I was just wondering if we can do it client side. The service table has a duration for each service.



Thanks in advance.



-John

Hello,

Please, have a look at the following posts:

dhtmlx.com/docs/products/kb/inde … al&q=12274

Here the similar issue was discussed.