setting text of an event after save

Hi I am trying to set the text of an event. It is a user selected option and I want to set the text when the user click the save in the lightbox. For some reason its setting every event to the same text. How do I fix this?


var sections=[    
                      {key:1, label:"Men's Cut"},
		      {key:2, label:"Color"},
		      {key:3, label:"Women's Cut"},
		      {key:4, label:"Wax"},
		      {key:5, label:"Child Cut (under 3 yrs old)"},
		      {key:6, label:"Nails - Pedicure"},
		      {key:7, label:"Nails - Manicure"},
		      {key:8, label:"Other"}
		];




scheduler.attachEvent("onEventSave",function(id,data,is_new_event){
				scheduler.templates.event_text=function(start,end,event){
					   return scheduler.getLabel("section_id", data.section_id);
			         }
				return true;
			});

Sorry I found what I was looking for. For those with a similar issue its.

scheduler.setEventText(id, text);

my solution for getting the value of a drop down in a lightbox and setting it as the default text when saved event.

                    // Save the appointment type selected as display text.
			scheduler.attachEvent("onEventSave",function(id,data,is_new_event){
				var text = scheduler.getLabel("section_id", data.section_id);
				this.setEventText(id, text);
				return true;
			});