The Calendar You've Been Waiting For
This On Field Change action ensures that only the last-selected resource is assigned to the event. This will prevent DayBack’s default multi-resource assignment for a particular calendar source. This action can be modified in a variety of ways to only restrict resource assignments for particular statuses, calendars, or based on other event-level information.
Trigger | On Field Change |
Script |
if (params.data.field === 'resource' && params.data.selected){ editEvent.resource = [params.data.value]; setTimeout(function(){}); action.callbacks.cancel(); } else{ action.callbacks.confirm(); } |
Options | Open in new window: No Prevent default action: Yes |