We recently released CalendarBOX 3.0 – you can read about what’s new in CalendarBOX here: CalendarBOX 3.0 Released.

CalendarBOX is a free FileMaker Developer Tool that lets you add a cool animated date picker to your own FileMaker Solutions for a modern professional look.

NOTE: It was initially designed for FileMaker 16, however it now works with older versions too – except you don’t get FileMaker 16’s Card windows.

Installation Instructions

Anyway, here are the instructions how to install CalendarBOX in your own solutions:

  1. Download CalendarBOX.
  2. Copy all of the Custom Functions over to your solution.
  3. Copy the CalendarBOX table over to your solution (adds a new CalendarBOX layout).
  4. Copy the CalendarBOX script folder over to your solution.
  5. Edit the new CalendarBOX layout- clear the default objects and resize the layout as per demo.
  6. Copy the CalendarBOX layout objects from the demo over to your solution.
  7. Create 1 record in the CalendarBOX table.
  8. Add script triggers to the CalendarBOX layout as follows:
    • onLayoutKeystroke = Misc: Key Triggers
    • onLayoutExit = Misc: Clear

Thats it – you are ready to start using CalendarBOX in your own solutions.

Using CalendarBOX

Single Dates

  1. Create a new button next to your single date field (i.e. date of birth) you want to set.
  2. Specify the button to call the CalendarBOX script “Load Calendar”
  3. Specify a script parameter. You’ll need to pass the name of the field you want to set. So wrap the field using the GetFieldName() function.

For example:

Perform Script [ "Load Calendar", GetFieldName(Table::DateOfBirth) ]

Date Range

  1. Create a new button next to your two date fields (i.e. FromDate & ToDate) you want to set.
  2. Specify the button to call the CalendarBOX script “Load Calendar”
  3. Specify a script parameter. You’ll need to pass the name of the two fields you want to set. So wrap the fields using the GetFieldName() function and seperate the two values using a pipe (|).

For example:

Perform Script [ "Load Calendar", GetFieldName(Table::FromDate) & "|"  GetFieldName(Table::ToDate) ]

Configuration

You can customise some behaviour of CalendarBOX via the “Config” script. Edit this script and you can change the global variable values which are used by CalendarBOX.

You customise the following values:

  1. Whether the calendar starts on a Sunday or Monday
  2. The colour of today’s date that’s shown on the calendar
  3. The colour of the dimmed dates, i.e. next month or last month dates
  4. The length of the day name columns, i.e. Mon, Tue, Wed or M, T, W etc.
  5. How many seconds to display the date picker after the user has made their selection – gives them a chance to verify their selection. This can be set to decimal points for shorter delays. Set to zero for no delay.