Drag-and-Drop Task Presets

Use external draggable events to create preset tasks that people can quickly copy and spawn events from. A great example is a car wrapping shop where different jobs need to be set up depending on the type of vehicle.

Print a list of predefined tasks and initialize them as draggable elements. Enable externalDrop for the calendar and set up the predefined event skeletons for the draggable component.

Whenever there is more information to be captured, like detailed task notes, customer information, the name of the technician... you can trigger a popup with the task form in the onEventCreate lifecycle event. For failed drops (trying to schedule a task during lunch breaks or weekends) the onEventCreateFailed event will be triggered.

Want to see how external presets look & feel for a scheduler?  Check out this example →
Download and try example

Demo

Loading the live demo

Preview in full screen

Drag preset task templates from an external list onto a event calendar — a popup form captures task details and technician at drop time.

Code

mobiscroll.setOptions({
  locale:  ,
  theme: ' ',
  themeVariant: ' '
});

var tasks = [
  {
    title: 'Small wrap',
    color: '#637e57',
    start: '2026-10-28T00:00',
    end: '2026-10-29T00:00',
  },
  {
    title: 'Full-size wrap',
    color: '#50789d',
    start: '2026-10-28T00:00',
    end: '2026-10-30T00:00',
  },
  {
    title: 'Mid-size wrap',
    color: '#6c5d45',
    start: '2026-10-28T00:00',
    end: '2026-10-30T00:00',
  },
  {
    title: 'Roadster wrap',
    color: '#9da721',
    start: '2026-10-28T00:00',
    end: '2026-10-30T00:00',
  },
  {
    title: 'SUV wrap',
    color: '#cd6957',
    start: '2026-10-28T00:00',
    end: '2026-10-31T00:00',
  },
  {
    title: 'Hypercar wrap',
    color: '#7a5886',
    start: '2026-10-28T00:00',
    end: '2026-11-01T00:00',
  },
];
var taskElm = document.querySelectorAll('.external-event-task');

function fillDialog(args) {
  mobiscroll.getInst(document.getElementById('external-event-job')).value = args.event.title;
  mobiscroll.getInst(document.getElementById('external-event-details')).value = args.event.details || '';
  technician.setVal();
  dialog.setOptions({ anchor: args.target });
  dialog.open();
}

mobiscroll.eventcalendar('#external-event-calendar', {
  view: {
    calendar: { labels: true },
  },
  invalid: [
    {
      recurring: {
        repeat: 'weekly',
        weekDays: 'SA,SU',
      },
    },
  ],
  dragToMove: true,
  externalDrop: true,
  onEventCreated: function (args) {
    fillDialog(args);
  },
  onEventCreateFailed: function () {
    mobiscroll.toast({
      message: "Can't create event on this date",
    });
  },
  onEventUpdateFailed: function () {
    mobiscroll.toast({
      message: "Can't add event on this date",
    });
  },
});

var technician = mobiscroll.select('#external-event-select', {
  inputElement: document.getElementById('external-event-select-input'),
  display: 'anchored',
  touchUi: false,
});

var dialog = mobiscroll.popup('#external-event-dialog', {
  display: 'anchored',
  width: 400,
  contentPadding: false,
  touchUi: false,
  headerText: 'Assign task',
  buttons: ['ok'],
  onClose: function () {
    mobiscroll.toast({
      message: 'New task added',
    });
  },
});

for (var i = 0; i < taskElm.length; i++) {
  mobiscroll.draggable(taskElm[i], { dragData: tasks[i] });
}
  

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.