add event form - select to auto populate field (dynamic)

I want to be able to automatically populate fields in the lighbox from, based on a selection from a drop down, or based on an ajax call.

Any ideas on how to achieve this?


You can define onchange handler to select section

{ name:“select”, height:40, map_to:“type”, type:“select”,
options:alert_opts, onchange:myfunction },

and later you can use form api to set values to controls … ction.html