DayBack Behaviors, Hacks, and Extensions

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

Control DayBack behavior with custom parameters in the URL.
Developer Resources and Utilities

Retrieve custom parameter from URL

Use You’d like to pass custom parameters in the URL for use within the calendar. This can be useful when loading DayBack in a FileMaker WebViewer and you’d like to pass parameters for use when creating or editing events.

In this scenario, we’re retrieving the parameter “sessionID” from the URL string and assigning it to an additional field in the event.

This takes effect when an existing event is clicked on or a new event is created.

Trigger   On Event Click
Script
// Gets the sessionID parameter from the URL and populates the additional field

function getSessionID() { 'use strict'; var sessionID = getUrlVars().sessionID; editEvent['1234996543210-4152637485'] = sessionID; } // Function to retrieve parameters from the URL
function getUrlVars() { 'use strict'; var vars = {}; var parts = location.href.substring(0, location.href.indexOf('#/')).replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } getSessionID();
Options Open in new window: No  Prevent default action: No

Note: A few example DayBack URLs that could be used in with this custom action:

https://app.dayback.com/?SessionID=123

https://app.dayback.com/?SessionID=123#/?filterProjects=MyProject

https://app.dayback.com/?userToken=[YourUserToken]&SessionID=123  

 

See it in action

Compatibility

FileMaker, Google, Mobile, Microsoft 365, Salesforce

Installation Requirements

Download and Customize

Download Information