Inserting Merge Fields

You can insert merge fields into templates, standard phrases, and acknowledgements.

In Content Administration:

  1. Click in the text of your template, standard phrase, or autoresponse.

  2. Click the Insert merge fields into the text icon.

  3. Select the merge field that you want to use. See Insert Merge Field dialog.

Inserting Merge Fields inside <a href> tag

NOTE: The key for this feature to work is saving template only once and re-creating it when changes are required.

It is possible to use merge field as a place holder to populate href value inside <a>  tag in category template. This feature has some limitations. Feature is enabled by setting  parameter "ParseMergeFieldInsindeAHref" value to true. Parameter is stored in kc_parameter table.

When parameter is set to true, go to Admin Category html editor and make sure you're starting off from an empty category template. If you wish to overwrite exising template then backup your existing html from HTML editor, delete everything inside editor and save so the template html text looks like:

<html>

  <head>

  </head>

  <body>

</body>

</html>

Add or paste your html template and make sure that <a href tag with merge field inside has the below syntax:

<a href='<merge name="MergeFieldName" type="KanaField"/>'>Your text for the link ie Click here!</a>

Save it , you will notice  that in visual editor text from inside a href tag looks something like:

">Your text for the link.

This is expected and it will look correctly when applied to email message but you CAN NOT change anything in the template after your first saving of a href with merge field inside it. If you wish to make any changes to existing template with merge field inside a href, please backup your existing html from HTML editor, delete everything inside editor and save empty template then use your backup , apply desired changes and save.

It is possible to have text before and after <a href='<merge name but you must save such template only once (No saves between creating such template , just save once when template is completed )

You can only have one <a href='<merge name' name element in your category.

 


Learn about  merge fields.

How do I add merge fields?

Learn about custom fields.

How do I add custom fields?