TaxCycle
Updated: 2026-11-27

Template Outlines

Template outlines let you turn segments of a letter on or off for a particular client, without editing the text of the letter. When you add or remove a segment, the letter keeps updating as you change data or calculations in the return.

This makes it possible to avoid using a template override to customize the contents of a letter on a client by client basis.

You can add outlines to your custom templates. Review the examples below to learn about the code.

Using an Outline

  1. Templates that support an outline display a message at the top of the template. Click Show the outline to open the panel containing the outline above the template.
    Screen Capture: Show outline link

  2. The panel shows a list of segments that are part of the template. Scroll down within the panel to see all the possible segments. 

  3. Some sections expand and allow you to choose one option from a group of radio buttons or check boxes.

  4. Check or clear a box to include or exclude the text. Boxes are checked or unchecked by default based on the code in the template and the data in the tax return.

  5. If selecting or clearing a check box or radio button overrides the calculated default for a segment, a blue asterisk appears. Click it to revert to the default selection.

  6. Click Hide the outline to collapse the panel above the template. 
    Screen Capture: Template Outline Open

What Appears in an Outline

By default, an outline only contains the segments applicable to the data in the open return; you will see different segments for each taxpayer (for example, see the default client letter). However, it is possible to create templates that display additional paragraphs that do not display by default but do appear as optional in the outline (for example, see the default pre-season letters).

Each box starts checked or unchecked based on the code in the template and the data in the tax return. If you select or clear a box or radio button and this overrides the calculated default for a segment, a blue asterisk appears. Click it to return to the default selection.

Adding Outlines to Your Templates

An outline is code that you place around the content you want to turn on or off. You can add it to your own templates or to a customized copy of a default template.

Element

What It Does

::

Add double colons to a condition to enable the outline for that segment.

The text before the double colons is often a template condition (for example, IsT1EfileEligible). The box is checked by default if the data in the return meets the condition.

Identifier

A word or words after the double colons that identifies the check box. It is required and must be different for each check box. It can be in English or French, but it cannot contain spaces.

true or false

Sets the default state when no template condition applies: true checks the box and false leaves it unchecked. Always use the English words, even in a French template.

?? and a title

Add double question marks after the identifier, followed by the title that appears in the outline. With no identifier, ?? creates an expanding section.

!!

Shows the segment in the outline, unchecked, even when its condition is not met. 

Important! Use !! with segments that do not depend on the return, such as the paragraphs in the pre-season letters. If you include a segment that is designed to show amounts from the return, and the data in the return doesn't meet its condition, the segment will be missing content and will not make sense.

Key and value (for example, option=0)

Creates radio buttons. Use the same key for each option and a different value for each.

Example 1: Check Boxes

Screen capture: Output for check boxes

{{# CurrentClient }}
    {{# IsT1EfileEligible :: EFILE ?? Mandatory electronic filing }}
        Mandatory electronic filing
        The Canada Revenue Agency (CRA) requires approved tax preparers to file
        tax returns electronically. Your tax return will be transmitted to the CRA.
        Please answer the related questions on the checklist.
    {{/ IsT1EfileEligible :: EFILE ?? Mandatory electronic filing }}
    {{# true :: PrincipalResidence ?? Reporting the sale of your principal residence }}
        Reporting the sale of your principal residence
        All taxpayers who sell their home must report the sale on their tax return,
        even if it was their principal residence for the whole time they owned it.
        There are substantial penalties for not reporting the sale. If you sold
        your home in {{ Constants.CurrentTaxationYear }}, provide the details on
        the attached questionnaire.
    {{/ true :: Principal Residence ?? Reporting the sale of your principal residence }}   
    {{# false !! T1135 ?? Foreign property disclosure }}
        Foreign property disclosure
        Canadian resident individuals who held property outside Canada with a
        total cost of more than 100,000 CAD at any time in the tax year must
        report it to the CRA. There are substantial penalties for non-compliance.
        Please complete the attached questionnaire.
    {{/ false :: T1135 ?? Foreign property disclosure }}
{{/ CurrentClient }}
  • EFILE uses a template condition, IsT1EfileEligible. The box is checked only when the return is eligible for EFILE.

  • PrincipalResidence uses true, so the box is always checked by default.

  • T1135 uses false with !!, so the segment always appears in the outline, unchecked, and you can choose to add it.

Example 2: Expander and Radio Buttons

Screen capture: Output for radio button and drop-down

{{# CurrentClient }}
{{# true :: ?? Complimentary close }}
{{# true :: option=0 }}Sincerely,{{/ true }}
{{# :: option=1 }}Kind regards,{{/ :: option=1 }}
{{/ true :: ?? Complimentary close }}
{{/ CurrentClient }}
  • ?? Complimentary close creates an expanding section with that title.

  • option=0 and option=1 use the same key with different values, so the
    preparer can choose only one.

  • true marks the radio button that is selected by default. Leave it out of the other options.

Writing Outline Titles

The title is the only text the preparer sees in the outline, so make it short and specific. In Example 1, each title matches the heading of the segment it controls.

Common Mistakes

Problem

Fix

A check box doesn't appear in the outline.

The condition isn't met for this return. Add !! if the segment should always be
available.

Two check boxes behave as one, or the outline doesn't load as expected.

Give each check box its own identifier, with no spaces.

A segment doesn't switch on and off as expected.

Make sure the closing tag uses exactly the same identifier and title as the opening tag. Copy the
opening tag and add a slash.

A French template doesn't work as expected.

Use true and false in English. Identifiers and titles can be in
French.

An optional segment that shows return amounts is missing content when included.

Remove !!, or move the amounts out of that segment.