Thanks for your response, but I am uncertain how to get that code to work.
I have many form names on the lightbox that are already successfully mapped to mysql database through events_rec.php
I want the customer_ID textarea to be filled from a URL parameter using the GET method. So it’s initial value will be = $_GET[‘customer_ID’]
I tried adapting your code but no initial value was being filled.
Thanks.
scheduler.config.lightbox.sections=[
{name:"customer_ID", height:20, map_to:"customer_ID", type:"textarea"},
{name:"description", height:130, map_to:"text", type:"textarea", focus:true},
{name:"location", height:20, type:"select", map_to:"location", options:[
{key:"", label:"None"},
{key:"Area1", label:"Area1"},
{key:"Area2", label:"Area2"},
{key:"Area3", label:"Area3"},
{key:"Area4", label:"Area4"}
]},
{name:"reason", height:20, type:"select", map_to:"reason", options:[
{key:"", label:"None"},
{key:"Other", label:"Other"},
{key:"Test", label:"Test"},
{key:"Service", label:"Service"},
{key:"Follow-Up", label:"Follow-Up"}
]},
{name:"recurring", height:115, type:"recurring", map_to:"rec_type", button:"recurring"},
{name:"time", height:72, type:"time", map_to:"auto"}
]
}