DayBack Behaviors, Hacks, and Extensions

Search our actions and extensions library for more options to customize your calendar

Prevent accidental drag and drop changes from modifying an event in a particular calendar source. Can be used to allow resource allocation without affecting the event's time, or it can prevent changes in time and resource.
Custom Workflows Filtering, Sorting and Permissions

Prevent Dragging from Changing an Event’s Time and Resource

Prevent accidental drag and drop changes from modifying an event in a particular calendar source. This will prevent any dragged events from saving the changes to the event.

Easy Copy & Paste Install:

Simple copy and paste this into a new On Event Save event action:

 

Trigger   On Event Save
Script
//Revert changes if the event was dragged and dropped
if (event.beforeDrop) {
  action.callbacks.cancel();
}
else{
  action.callbacks.confirm();
}
		
Options Open in new window: No  Prevent default action: Yes

Prevent Dragging from Changing an Event’s Time, while allowing Resource Changes

Use this verison of the app action if your users are primarily using the schedule views to assign items to resources and you don’t want them changing an item’s time when they do so. This mod will snap an event back to its original time if dragging the event accidentally includes a change to the event time.

Easy Copy & Paste Install:

Simple copy and paste this into a new On Before Save event action:

 

Trigger   Before Event Save
Script
//Before Event Save
function noTimeChange() {
    //drag and drop or popover edit?
    if(event.beforeDrop) {
      if(event.allDay!==event.beforeDrop.allDay || 
!event.start.isSame(event.beforeDrop.start) ||
!event.end.isSame(event.beforeDrop.end)) { event.allDay = event.beforeDrop.allDay; event.start = event.beforeDrop.start.clone(); event.end = event.beforeDrop.end.clone(); } } } noTimeChange();
Options Open in new window: No  Prevent default action: No

 

See it in action

Compatibility

FileMaker, Google, Mobile, Microsoft 365, Salesforce

Installation Requirements

Easy Install

Download Information