Hi,
I am trying to populate some fields in my light box based on user selected drop down. I can see the data being written to the field but it is not being updated in the DB. I am using onEventAdded but it still isn’t working. Any thought how to get it to work?
// lightbox
scheduler.config.lightbox.sections=[
{name:"name_dropdown", height:33,
type:"select", options:names, map_to:"client_name", focus:true },
{name:"phone_field", height: 20, map_to: "phone", type: "textarea"},
{name:"email_field", height: 20, map_to: "email", type: "textarea"},
{name:"time", height:72, type:"time", map_to:"start_time"}
];
scheduler.attachEvent("onEventAdded", function(event_id,event_object){
event_object.phone = "THIS IS A TEST";
event_object.email = "THIS IS A TEST"
scheduler.formSection('phone_field').setValue("THIS IS A TEST");
scheduler.formSection('email_field').setValue("THIS IS A TEST");
return true;
});
This value gets written but not saved to the DB.