DHTMLxScheduler passing PHP $_SESSION variable to lightbox f

Thank you asnwering my questions Support. Now that you have thought me how to add more fields to the events table and edit the lightbox. How do i pass a $_SESSION variable to the lightbox form like in a <input type=‘hidden’ value=’<?=$_SESSION['variable'];?>’ /> so it will be inserted as one into one of the fields. How do i specifiy what field for it to be inserted into also?

Thank You

Because its a part of session you need not sent it to the client side, just use it as part of connectors code

function custom_fields($action){
$action->add_field(“some_name”, $_SESSION[‘variable’]);
}
$scheduler->event->attach(“beforeProcessing”,“custom_fields”);