Update Events Title Field Using Custom Function

Update Events Title Field Using Custom Function

Hi Guys,

I am trying to fill the Events Title field with the related Contact name and Event Type preferably separated by a hyphen.

After many attempts and google searches this is what I have now, I do not get an error when saving but it doesn't work.

void Update_events_title (string event_title string event_type string contact_name )
titleupdate = zoho.crm.updateRecord("Events" ,input.event_title ,{ "Title" : "contact_name,event_type" } ) ; 

Could someone tell me were I am going wrong please,

Mike