Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There is a You can add merge fields in your document templates and this is helpful in scenarios when you want a specific information to be auto populated on your invoice template, quote template, job card, or any other document template types.

Note:This is the proper way of adding a merge field for it to work when creating or editing document templates. If done incorrectly, document templates will either fail to generate or data will not auto populate or at times, you will get error 500.

Adding a Merge Field

1. Go to Administration → Document Templates.

Image Added

2. Select the template where you'd like a merge fields added to by clicking the Pencil icon. 

In this example we are editing the invoice template called Invoice Itemised 3 by adding a merge field called WorkUndertaken but you can certainly add other merge fields based on the available list of merge fields.

Image Added

3. Click Download Template.

Image Added


3.1 Depending on your computer settings, it will either download automatically which you will need to open from your Downloads Folder or it might ask you to save the file manually.

Image Added

4. Open the downloaded template and click Enable Editing if prompted and position your mouse cursor in the area where you want to add the merge field or perhaps add it in a table format if preferred. 

Image Added

5. On the Insert Menu in Word Document, click on Quick Parts, then Fields.

Image RemovedImage Added


26. Select MergeField in the Field names area and enter the name of the field to be displayed then click Ok.

In this example, we are adding the merge field called WorkUndertaken.


Image AddedImage Removed


Tip

Note: The field name needs to be in exactly the same format as listed in the table of available fields. See Document Template User Guide for a list of available field names.



37. After adding the merge field, you should see it in a unique format like the one shown below and when you click on it, it should automatically highlight the entire merge field.


Image RemovedImage Added


Note: Copying and pasting the merge field and changing it to a different name does not work as it only changes the physical component of the merge field but not the actual command associated with it. 

Repeat steps 1 and 2 when adding another merge field.

Editing a Merge Field

1. You can edit a merge field if it’s not working perhaps due to a typo and to proceed, right click on the merge field and select Edit Field, make the necessary changes for example, spelling and click OK.

You can also apply formatting changes like increase font size, change font style, etc. by doing right click, and adjust accordingly.


Image Removed8. Once you've finalised the changes, save the template in your computer by clicking File → Save As and you might edit the file name to indicate it's an updated copy.

Image Added

9. Go back to Ascora page in Administration → Document Templates → and click Upload a New Template and select the updated version that you just saved.

Make sure to click Save button to finalise the updates.

Image Added

We've just completed the process of adding a merge field to a document template.


Tip

Note: You can follow exactly the same steps when you need to add merge fields to other document template types which could be a quote template, job card, purchase order template, etc.

To see a list of available merge fields, see user Document Template User Guide and look for Detail Fields.


Video Guide - How to Add a Merge Field

View file
nameHow to Add a Merge Field.mp4
pageWelcome to Ascora University!
height150