In the lightbox I have a custom form field that has links which are constructed with the select_id
These links add related records (event cases, notes…)
But there is no id unless you save (which exits the lightbox)
So that you have to save and re-enter the lightbox to access those links…
It’s driving the users crazy
The best solution I could find was to create a save button that causes the lightbox to close and reopen so that I have an ID in my link.
/*
scheduler.attachEvent(“onLightboxButton”, function(button_id, node, e){
if(button_id == “save_no_close”){
var eventId = scheduler.getState().lightbox_id;
scheduler.save_lightbox();
scheduler.showLightbox(eventId);
}
});
*/
but I can’t get this to work now
Can anyone suggest how to fix this or another solution/work-around?
I’m even open to getting a random number and then updating the related tables in the codeigniter insert routine.
Thanks,
David