Default value in form

Hi all,

I am trying to set a default value to a field when i create a new event, however it looks like i am doing something wrong because this value is always empty.

{view:"text", label:"User",id:'user', name:'user', value:"testuser"}

Is there any way to have this field with a default value?
It is possible to change it before the data is saved?

Regards,
Walter

I found my own solution when I was looking something else.

scheduler.templates.new_event_data = function(){
return {user:"testuser"};
};