Menu

Example: T3 Trust Type Dropdown Fields in Templates

Updated: 2025-03-25

When preparing a T3 trust return, you must indicate the trust type by selecting the numerical Code or the text description from the Type field. These two fields stay in sync with each other, no matter which field you use. They even share the same field code {{CurrentClient.Info.ID.Type}}.

It is common to struggle with using this type of field code in templates, data monitors or print sets:

  • To create a condition, you need to know the field code and the value. The value is often different than the description displayed in the field. You can easily find the value for a dropdown field by previewing its field code in the Template Editor.
  • To display the current entry from the field—either the code or the description—you must apply the format() function. Otherwise, you will see the value for the field, which cannot contain spaces or punctuation and is always in English. 

Click the field code link in the blue bar at the bottom left of the window to copy the {{CurrentClient.Info.ID.Type}} field code to your clipboard. Then, paste it into a template.

Screen Capture: Copy Trust Type Field Code

Inserting the Trust Type Code or Description

Pasting {{CurrentClient.Info.ID.Type}} into a template will display the value of the field. This is neither the trust type code, nor the description you see on the Info worksheet. For example, if you select code 905, preview value is TestamentarySpousal.

Use the format() function to display the code or the description from the trust type field.

  • To display the trust type code, format the field code as a code:  {{format(CurrentClient.Info.ID.TypeField,"code")}}
  • To display the trust type description, format the field code as a text:  {{format(CurrentClient.Info.ID.TypeField,"text")}}

Screen Capture: Formatted Trust Type Field

Finding the Value or ID

  1. Paste {{CurrentClient.Info.ID.Type}} into a template to preview the value of the field.
  2. You can use the value to create a condition (see below), such as {{CurrentClient.Info.ID.Type=Type="TestamentarySpousal"}}.
  3. The field also has a numerical ID for each entry. To find the ID, edit the field code to add Field at the end: {{CurrentClient.Info.ID.TypeField}} 
  4. The preview for this code will show Principal.Info.ID.Type = 1, 1 being the ID you can use to write a condition (see below), instead of the value. For example {{CurrentClient.Info.ID.Type=1}}.
  5. Make a different selection from the dropdown to preview the value or ID for a different trust type.

Screen Capture: Preview of Trust Type Field Value and ID

Creating a Condition

Before you start, we recommend breaking apart the field code. This will shorten the condition and make it easier to read. You can divide it up in a few different ways. We typically suggest the following:

  1. Create an opening and closing condition for the CurrentClient context. (Green highlight in the screen capture.)
  2. Within that, create an opening and closing condition for the Info.ID portion of the field code, removing the row number. (Yellow highlight in the screen capture.)
  3. This leaves the Type portion for the main condition. (Everything that comes between each pair of tags.)

Once you have a simplified field code, you can either use the text value or ID to create a condition. The screen capture shows both examples separately.

  1. Find the value or the ID for all the trust types you want to use in the condition (see above).
  2. Use the or operator to write a condition for multiple values or IDs. (Pink highlight in the screen capture.)
  3. If you use the text values, you must put them in quotation marks.
  4. If you use the numerical IDs, you can omit the quotation marks. It also makes your condition much shorter.
  5. Close the condition by repeating the tag with a slash at the beginning.
  6. In between these two tags, enter the text you want to display for testamentary trusts. 

Screen Capture: Sample Code for Trust Type

Sample Code

Copy this sample code into a template to try it out.

Sample 1: Value, ID and Formatting

{{CurrentClient.Info.ID.Type}}
{{CurrentClient.Info.ID.TypeField}}
{{format(CurrentClient.Info.ID.TypeField,"code")}}
{{format(CurrentClient.Info.ID.TypeField,"text")}}

Sample 2: Condition With Value

{{# CurrentClient}}
{{# Info.ID}}
{{# Type="TestamentarySpousal" or Type="TestamentaryLifetimeBenefit" or Type="TestamentaryOther" or Type="TestamentaryQualifiedDisabilityTrust" or Type="TestamentaryGraduatedRealEstate"}}

Show this text for testamentary trusts.
This uses text values.

{{format(TypeField,"code")}}
{{format(TypeField,"text")}}

{{/ Type="TestamentarySpousal" or Type="TestamentaryLifetimeBenefit" or Type="TestamentaryOther" or Type="TestamentaryQualifiedDisabilityTrust" or Type="TestamentaryGraduatedRealEstate"}}
{{/ Info.ID}}
{{/ CurrentClient}}

Sample 2: Condition With ID

{{# CurrentClient}}
{{# Info.ID}}
{{# Type=1 or Type=2 or Type=3 or Type=31 or Type=32}}

Show this text for testamentary trusts.
This uses numerical values.

{{format(TypeField, "code")}}
{{format(TypeField, "text")}}

{{/ Type=1 or Type=2 or Type=3 or Type=31 or Type=32}}
{{/ Info.ID}}
{{/ CurrentClient}}