Merge Letter Templates – Modular FileMaker

Merge Letter Templates

If you have ever tried to add a merge field or merger variable inside of a text field, you know it’s not easy to do.  Programmers have done so, but giving clients the ability to craft their own custom letter templates with variables didn’t exist.  Until now.  Thanks to Matthew Leering (and ModularFileMaker.org, of course), it’s now possible to add that capability to your solutions:

In short, this is a module that will allow developers to define merge letter variables which can be inserted into merge letter templates that users are able to create. It uses a single table that serves double duty as both storage for template data, and also for handling the virtual list of merge letter variables.  I’ve tried to make this as easy to integrate as possible, so hopefully your experience with this module is a good one.

Version 1.1 Updates Include:

  • Updated Readme (Reference to Configuration script was mis-labeled, another step wasn’t verbose enough in its explanation) –> Thanks Mike!
  • Fixed bug with Configuration script –> incorrect layout name was hardcoded
  • Updated how variables get dynamically created
  • Introduced new way of using get variables that evaluate at runtime –> Use {{GetFunctionName}} syntax similar to merge functions used on layouts
  • Allowed for the usage of string literals as substitution text –> Can also have system generate these strings onInitializeModule (not necessarily runtime)
  • Updated configuration to show examples of all 3 types of substitution values (fields/strings/GetFunctions)

In short, users can create letter templates that include merge variables selected from a list.  Powerful stuff. Check it out and download the example file at the link below.

Source: Merge Letter Templates – Modular FileMaker

Liked Liked
Need FileMaker Development Help? Or to purchase FileMaker Software?
Contact FM Pro Gurus for help