Required Fields or Default values in lightbox for Units in

I’m using shared events successfully. At the moment, I have a select drop down list configured on the lightbox for the Unit Name.

When I use the Unit View, this field correctly defaults to the Unit I have created the event on.

On the week view, the field is by default empty and I can save events without setting this field, but as this means the event is not associated with any Unit, I want to stop users from forgetting to complete this field.

Is there a way I can make a field required before allowing the record to be saved? Alternatively, is it possible to set a default value?



thank you,

Rose

Alternatively, is it possible to set a default value?

scheduler.attachEvent(“onEventCreated”,function(id){
scheduler.getEvent(id).some_property = default_value;
return true;
})