Step 6 – Using Templates
fmSMS allows you to create an unlimited number of Templates which can be used when sending Messages to save you having to type the same message multiple times. Templates can also contain an unlimited number of merge fields which can be drawn from the Contacts database (you can extend the list of Merge fields to other parts of your FileMaker solution when integrating if required).
To view the list of standard Templates that ship with fmSMS click the TEMPLATES button at the top of the screen and you should see the following list:
To view the details for one of the existing Templates click the green arrow button to the left:
Each Template has the following information:
Template ID: each Template is automatically assigned a Template ID
Description: a summary to describe what type of Template this is
Characters: this is the count of the number of characters in the Template Body (if you Template Body includes Merge Fields the Character count will not be a true reflection of the final number of characters used for a Message as the Merge Fields will be replaced with data from the Contacts database when the Template is actually inserted into the Message before it is sent)
Notes: enter any required Notes for the Template
Template Body: this is the actual Template that will be inserted into the Message Body when you select the Template when sending a Message. The Template Body can contain Merge Fields as well as regular text
Merge Fields: this is a list of all available Merge Fields from the Contacts table in fmSMS. We are using the ExecuteSQL function to dynamically generate a list of fields from the Contacts table (excluding certain fields and those starting with an underscore or a z). To insert a Merge Field into the Template Body first select the Merge Field you wish to insert, then position the cursor at the location you wish the Merge Field to appear in the Template Body and click the Insert Merge Field button. If you add new fields to your Contacts table you can click the Update Merge Fields button.
For details on how to select a Template when sending a Message please visit Step 4 – Create a Contact and Send a Single SMS and Step 5 – Send a Bulk SMS to a Group of Contacts.