Hi,
We need to customize the lighbox popup based on event.
For some event the activity in the attached image needs to be a drop down and for some event the activity drop down should not be present.
Can anyone help me on how to do this.
I tried the below snippet. But its not working properly.
scheduler.attachEvent(“onClick”, function(id,native_event_object){
var event = scheduler.getEvent(id);
if(event.systemDefined == "false") {
scheduler.config.lightbox.sections=[
{name:"activity", height:30, map_to:"text", type:"select", options:activities, focus:true},
{name:"remarks", height:100, map_to:"remarks", type:"textarea" },
{name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
{name:"time", height:72, type:"time", map_to:"auto"}
]
} else if(event.systemDefined == "true") {
scheduler.config.lightbox.sections=[
{name:"remarks", height:100, map_to:"remarks", type:"textarea" },
{name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
{name:"time", height:72, type:"time", map_to:"auto"}
]
}
return true;
});
Thanks,
Vijay