I was working on dynamic fields in the eventEdit widget, and I came up with a small issue.
I am not sure if it is my fault or not.
When I click on an event of a different eventType, some of the custom fields i configured disappear when I click the previous eventType again.
Attached the code.
eventEditFeature: {
readOnly: false,
items: {
aantal: {
type: 'number',
name: 'aantal',
label: 'Aantal',
dataset: {eventType: 'Diner'},
ref: 'eventTypeField',
},
email: {
type: 'text',
name: 'email',
label: 'Email',
dataset: {eventType: 'Diner'},
ref: 'eventTypeField',
},
tel: {
type: 'text',
name: 'tel',
label: 'Telefoon',
dataset: {eventType: 'Diner'},
ref: 'eventTypeField',
},
}
},