Hi,
when i open the light-box in Description which is a text-area. By default the message —> New Event <----------is appearing for editing purpose .
But i have an extra field like UserName which is a text-field before the Description , so that i want display this message -----> Enter Your Name <------ in my user defined field by default.
scheduler.attachEvent("onEventCreated", function(id){
scheduler.getEvent(id).user_name="Set user name";
return true;
})
Hi, i added you code like this
[code]scheduler.attachEvent(“onEventCreated”, function(id){
scheduler.getEvent(id).user_name=“Set user name”;
return true;
})
scheduler.config.lightbox.sections = [ {
name : “user_name”,
height : 50,
map_to : “title”,
type : “text”,
focus : true
},
{
name:“description”,
height:20,
map_to:“text”,
type:“textarea” ,
},
[/code]
but i didn’t get .
You need to use the name of field, not the name of section
scheduler.attachEvent("onEventCreated", function(id){
scheduler.getEvent(id).title="Set user name";
return true;
})