I put this in my init function
scheduler.config.buttons_right = [“info_button”];
scheduler.locale.labels[“info_button”] = “INFO”;
scheduler.attachEvent(“onLightboxButton”, function(button_id, node, e){
if(button_id == “info_button”){
alert(e.event_id);
}
});
<<<
But when I press the button I get ‘undefined’ in the alert.
How can I get any of the event values?
TIA,
David G
1 Like
I found the answer!!!
var value = scheduler.formSection(‘casenumber’).getValue();
I needed that value to write some javascript to redirect to a certain url based on a value from the lightbox.
-D
scheduler.config.buttons_right = [“info_button”];
scheduler.locale.labels[“info_button”] = “INFO”;
scheduler.attachEvent(“onLightboxButton”, function(button_id, node, e){
var value = scheduler.formSection(‘casenumber’).getValue(); // THIS IS IT!!!
if(button_id == “info_button”){
//alert(“INFO!”);
alert(value);
}
});
scheduler.config.lightbox.sections=[
{ name:“description”, height:25, map_to:“text”, type:“textarea”, focus:true },
{ name:“details”, height:100, map_to:“details”, type:“textarea”, focus:true },
{ name:“casenumber”, height:25, map_to:“case_num”, type:“textarea”, size:“15”, foc
1 Like