Scheduler's edit form

Hello!

Considering I customized my edit form a little, I want some predefined data to appear when that view is loaded, but the problem is that I just can’t find the template for it, nor do I have any idea on how to implement it.

As an example, I have added a field, ‘type’, and when I want to edit an event i want the coresponding type to be allready selected.

Thanks!

Hello,

if edit form opens for the new event (after clicking “add” button), you can set default values via new_event_data template (start and end dates are set) http://docs.webix.com/mobile_calendar__calendar_templates.html#new_event_data

If you are editing an existing event, the event should contain the value you want to show in the form.

I am editing an existing event, but the value is not shown, it can’t be shown because it’s not stored anywhere, it’s just an informative input with data calculated in javascript once that event is shown

Try to set “onViewShow” for the form view and set a value for the field via setValue method:

$$("scheduler").$$("form").attachEvent("onViewShow",function(){
    var id = $$("scheduler").getCursor();  // an active id
    // calculate value
    var value = ...; 
    $$("scheduler").$$("your_field_id").setValue(value);
});