Hi,
I am new to using DHTMLX Schedular. I cant figure out how to get a value of a Lightbox select (combo) option?
My code is as follows:
var meetingType = [
{ key: 1, label: 'test1' },
{ key: 2, label: 'test2' },
{ key: 3, label: 'test3' }
];
scheduler.config.lightbox.sections = [
{ name: "Title", height: 25, map_to: "title", type: "textarea", focus: true },
{ name: "Meeting Type", options: meetingType, map_to: "meeting_type", type: "combo", filtering: true, cache: false },
{ name: "Agenda", height: 50, map_to: "agenda", type: "textarea" },
{ name: "time", height:72, type:"calendar_time", map_to:"auto" }
];
That creates the popup with those fields which works fine.
I now want to get all the values -
I can get them all using ev.[name of map_to] however the meetingType will only return the key value. I want to get it to return the label of the key. Is that possible and if so how can I do that?
Thank you
Andy