Hello,
I have a problem to set default values when creating new event in the Scheduler taskEdit. This is for the fields statusField, effortField and typeField. I tried to set "value", "magnitude", "defaultValue" etc. and it does not seem to work?
statusField: {
type : 'combo',
name : 'status',
label : 'Status',
weight: 5,
required: true,
items : task_status,
valueField : 'id',
displayField : 'text',
editable: false,
clearable: false
},
effortField : {
label: 'Timer',
weight: 6,
allowNegative: false
},
typeField: {
type : 'combo',
name : 'type',
label : 'Type',
weight: 7,
required: true,
items : [
{ id : 'task', text : 'Opgave' },
{ id : 'internal_time', text : 'Intern tid' },
{ id : 'holiday', text : 'Ferie/sygdom' },
{ id : 'reserved', text : 'Reserveret' }
],
valueField : 'id',
displayField : 'text',
editable: false,
clearable: false
}