---
title: "Adding a Variable to Your Content"
slug: "adding-a-variable-to-your-content"
updated: 2022-03-04T21:10:49Z
published: 2022-03-04T21:10:49Z
canonical: "support.smarteru.com/adding-a-variable-to-your-content"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.smarteru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a Variable to Your Content

Email template variables may be added to the content of [snippets](/v1/docs/email-template-snippets), and to the subject or content of [email templates](/v1/docs/email-templates).

![Variables](https://cdn.document360.io/7efaadab-fef6-4186-806a-2ca14c9ce9ea/Images/Documentation/adding-a-variable-to-your-content-image-mrp31q52.png)

To add a variable to your content:

1. Display the Add/Edit Email Template or Add/Edit Email Snippet workscreen. These workscreens display when you add or edit an email template or snippet from the [Email Management Dashboard](/v1/docs/email-management-dashboard).
2. Expand the **Content** accordion. If you are adding or editing a snippet, the Variables list displays all variables. If you are adding or editing an email template, the Variables list displays all variables that are available for the selected email type. A description of the selected variable displays below the list.

![](https://cdn.document360.io/7efaadab-fef6-4186-806a-2ca14c9ce9ea/Images/Documentation/adding-a-variable-to-your-content-image-r4xgzu6i.png)

1. Do one of the following:

- Select and highlight the variable, then drag the variable to your subject or content.
- Select and highlight the variable, then copy and paste it to your subject or content.
- Manually type the variable into your subject or content.

If you opt to type the variable into the content:

- Be sure to type it exactly as shown. Mistyping the variable into your content will result in an error that prevents you from saving or previewing the template.
- Be sure the variable you are typing is applicable to the selected email type. Typing a variable into the content of an email type for which it's not valid for will result in an error. For example, the [email.chaptername variable](/v1/docs/email-template-variables#emailchaptername) is only valid for the [*Task Feedback*](/v1/docs/system-email-templates-course-emails-online-and-scorm#task-feedback) email type. If you type email.chaptername into the content of another email type such as *Account Invitation*, an error displays and you will not be able to save or preview the template.

1. Click **Save**.

## Related

- [Adding an Email Snippet](/adding-an-email-snippet.md)
- [Adding an Email Template](/adding-an-email-template.md)
- [Editing an Email Snippet](/editing-an-email-snippet.md)
- [Editing an Email Template](/editing-an-email-template.md)
- [Email Management Dashboard](/email-management-dashboard.md)
- [Email Snippet: Content](/email-snippet-content.md)
- [Email Template: Content](/email-template-content.md)
