Disable event title edit and access form fields

I have 2 questions:

I need to disable the text edit field of the editform on scheduler. I would like the user to update dates only and leave title alone.

Also I am having trouble accessing the field values. I am getting object error code when I do this:

var values = $$(“scheduler”).$$(“editForm”).getValues();
dhx.alert(“Data:” + values);

Any ideas or code sample will be appreciated.

/event data/
var eventId = $$(“scheduler”).getCursor();
var item = $$(“scheduler”).item(eventId);

var details = item.details;
var start_date = item.start_date;
var end_date = item.end_date;

dhx.alert(“Data:” + end_date)

I need to disable the text edit field of the editform on scheduler.

You may use the following approach to make “text” element read-only:

$$(“scheduler”).$$(“editForm”).elements[“text”].define(“readonly”,true);

Also I am having trouble accessing the field values. I am getting object error code when I do this:

$$(“scheduler”).$$(“editForm”).getValues(); is a correct approach to get form values. Could you provide an example of usage ?

Worked perfectly! Thanks for the assistance.