Sign in
    Shared Email Templates

    Checkboxes in Outlook email templates

    In your email template, you can create a pop-up dialog with a checkbox. The dialog appears when you insert the template into an email. By selecting or clearing the checkbox, you can control what content is included in the resulting email. For example, you can choose whether to include or skip a specific section of the template. To set this up, you need:

    • Checkbox option of the WhatToEnter macro.
    • Insert-if section.
    1. Start creating or editing your template. Place the cursor where you want to add the WhatToEnter macro placeholder.

    2. On the template editor toolbar, select the Insert macro button.

      The Insert macro button in a shareable email template
    3. Select What to enter (WTE).

    4. On the General tab of the What to enter dialog:

      • Under Type, select Checkbox.
      • Under Field name, enter a label for the checkbox.
      • Select the default state: Checked or Unchecked.
      • Enter the value if checked.
      • Enter the value if unchecked.

      For example, to create a pop-up dialog with an unchecked checkbox that allows you to include a loyalty discount if the checkbox is selected, do the following:

      • Select Checkbox under Type.
      • Enter Include a loyalty discount as Field name.
      • Select Unchecked as Default state.
      • Enter True as Value if checked.
      • Enter False as Value if unchecked.
      The General tab for a checkbox in the What to enter dialog
    5. On the Advanced tab of the What to enter dialog, you can select For Insert-if sections only. In this case, the value returned by the WhatToEnter macro won’t be inserted into an email and will be used only to check the condition.

      The Advanced tab in the What to enter dialog
    6. When ready, select OK.

    7. In your template, select the section you want to control with the checkbox (for example, information about a loyalty discount), right-click it, and select Add condition.

      Selecting an option to add a condition to a template part
    8. Set up the condition:

      • Under Find in, select WhatToEnter result.
      • Under WhatToEnter, select the WhatToEnter macro you added by following Steps 3-6.
      • Under Condition, select is equal to.
      • Under Text, enter the value specified as Value if checked in Step 4.
      • Select OK.
      Adding a condition to a template part
    9. Your template now includes the WhatToEnter macro placeholder and an Insert-if section. Select Save.

      Saving a template

    When you insert the template into an email, the dialog appears allowing you to use the checkbox.

    Compare:

    • The checkbox is selected.

      The checkbox is selected.

      As a result, the condition is met, and the Insert-if section is added to an email.

      The resulting email with the Insert-if section
    • The checkbox is not selected.

      The checkbox is not selected.

      As a result, the condition is not met, and the Insert-if section is not added to an email.

      The resulting email without the Insert-if section

    See also #