---
title: What are the available variables in the template editor?
description: Check out the template editor variables here!
---

[Skip to content](https://support.hooksecurity.co/available-variables#main-content)

English

Show submenu for translations

[Submit a Ticket](https://support.hooksecurity.co/kb-tickets/new?hsLang=en) [Customer Portal](https://support.hooksecurity.co/tickets-view?hsLang=en)

[![Hook\_Logo (3)](https://support.hooksecurity.co/hs-fs/hubfs/Hook_Logo%20(3).png?width=150&height=113&name=Hook_Logo%20(3).png)](https://www.hooksecurity.co/welcome)

- [Tickets](https://6535385.hs-sites.com/tickets-view)
- [Sign out](https://6535385.hs-sites.com/_hcms/mem/logout)

Open main navigation

Close main navigation

- [Tickets](https://6535385.hs-sites.com/tickets-view)
- [Sign out](https://6535385.hs-sites.com/_hcms/mem/logout)
- English
  
  Show submenu for translations
- [Submit a Ticket](https://support.hooksecurity.co/kb-tickets/new)
- [Customer Portal](https://support.hooksecurity.co/tickets-view)
- [Account created in 2026 or later? Go to the Knowledge Base →](https://docs.hooksecurity.co/docs)

[Account created in 2026 or later? Go to the Knowledge Base →](https://docs.hooksecurity.co/docs)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://support.hooksecurity.co/?hsLang=en)
2. [Tests/Campaigns](https://support.hooksecurity.co/tests-campaigns?hsLang=en)

# What are the available variables in the template editor?

## Check out the template editor variables here!

| **Variable** | **Description** |
| --- | --- |
| {hook\_url} | Displays the configured URL and unique tracking code of the hook. This tag also used when making an image clickable. |
| {hook\_link} | Displays the anchor text configured for the hook URL |
| {phish\_key} |  |
| {fname} | Displays the first name of the target |
| {lname} | Displays the last name of the target |
| {email} | Displays the email address of the target |
| {group\_name} | Displays the group name of which the target is a member |
| {sub\_group\_name} | Displays the sub group name that the target is assigned |
| {to\_1} | Displays the Optional Field 1 of the target |
| {to\_2} | Displays the Optional Field 2 of the target |
| {to\_3} | Displays the Optional Field 3 of the target |
| {go\_1} | Displays the Optional Field 1 assigned to the group |
| {go\_2} | Displays the Optional Field 2 assigned to the group |
| {go\_3} | Displays the Optional Field 3 assigned to the group |
| {ip\_address} | Displays the IP Address from where the target is coming from. *NOTE*: can only be used on landing pages. Do not use in emails. |
| {date} | Displays the current date |
| {datetime} | Displays the current date and time |
| {company} | Displays the target’s company name |
| {title} | Displays the target’s title |
| {address\_one} | Displays the target’s address line 1 |
| {address\_two} | Displays the target’s address line 2 |
| {city} | Displays the target’s city |
| {state} | Displays the target’s state |
| {zip} | Displays the target’s postal code |
| {country} | Displays the target’s country |
| {phone\_business} | Displays the target’s business phone number |
| {phone\_business\_fax} | Displays the target’s business fax number |
| {phone\_mobile} | Displays the target’s mobile phone number |
| {department} | Displays the target’s department |
| {manager} | Displays the target’s manager |

If the group or target variables are changed before or during another test, changes will reflect in all tests. That is, the target and group variables are not tied to the test, but to the target or group.

#### **Examples of use of optional fields**

Optional Group fields: These three fields could be used to identity common information across an organization that could be used during a test, such as the organization’s regulator or audit company.

Optional Target Fields: These three fields could be used to identify specific information related to that target, such as the target’s supervisor, office location, etc.

- [Getting Started](https://support.hooksecurity.co/getting-started?hsLang=en#main-content)

    - [General](https://support.hooksecurity.co/getting-started?hsLang=en#general)
    - [General Safelisting](https://support.hooksecurity.co/getting-started?hsLang=en#general-safelisting)
    - [Microsoft Safelisting](https://support.hooksecurity.co/getting-started?hsLang=en#microsoft-safelisting)
    - [GSuite Safelisting](https://support.hooksecurity.co/getting-started?hsLang=en#gsuite-safelisting)
    - [Firewall/Spam Filter Safelisting](https://support.hooksecurity.co/getting-started?hsLang=en#firewall-spam-filter-safelisting)
    - [Creating Groups/Adding Targets](https://support.hooksecurity.co/getting-started?hsLang=en#creating-groups-adding-targets)
    - [Reporting Plug-In](https://support.hooksecurity.co/getting-started?hsLang=en#reporting-plug-in)
    - [3rd Party Integrations](https://support.hooksecurity.co/getting-started?hsLang=en#3rd-party-integrations)
    - [Platform Settings](https://support.hooksecurity.co/getting-started?hsLang=en#platform-settings)
- [Hook Academy](https://support.hooksecurity.co/hook-academy?hsLang=en#main-content)

    - [Campaign Ideas](https://support.hooksecurity.co/hook-academy?hsLang=en#campaign-ideas)
    - [Industry Specific Campaigns](https://support.hooksecurity.co/hook-academy?hsLang=en#industry-specific-campaigns)
    - [Course Reviews](https://support.hooksecurity.co/hook-academy?hsLang=en#course-reviews)
    - [Mastering Reporting](https://support.hooksecurity.co/hook-academy?hsLang=en#mastering-reporting)
    - [Becoming Compliant](https://support.hooksecurity.co/hook-academy?hsLang=en#becoming-compliant)
    - [Suggest a Hook Academy Topic](https://support.hooksecurity.co/hook-academy?hsLang=en#suggest-a-hook-academy-topic)
- [Tests/Campaigns](https://support.hooksecurity.co/tests-campaigns?hsLang=en#main-content)

    - [Reseller Only](https://support.hooksecurity.co/tests-campaigns?hsLang=en#reseller-only)
- [School](https://support.hooksecurity.co/school?hsLang=en#main-content)

    - [3rd Party Integrations](https://support.hooksecurity.co/school?hsLang=en#3rd-party-integrations)
    - [Troubleshooting](https://support.hooksecurity.co/school?hsLang=en#troubleshooting)
    - [Branding](https://support.hooksecurity.co/school?hsLang=en#branding)
    - [Course](https://support.hooksecurity.co/school?hsLang=en#course)
    - [Students](https://support.hooksecurity.co/school?hsLang=en#students)
    - [Automations](https://support.hooksecurity.co/school?hsLang=en#automations)
- [Reports](https://support.hooksecurity.co/reports?hsLang=en#main-content)

    - [Generate Reports](https://support.hooksecurity.co/reports?hsLang=en#generate-reports)
- [FAQs](https://support.hooksecurity.co/faqs?hsLang=en#main-content)

    - [Troubleshooting](https://support.hooksecurity.co/faqs?hsLang=en#troubleshooting)
    - [Campaign of the Month](https://support.hooksecurity.co/faqs?hsLang=en#campaign-of-the-month)
- [Reseller Guide](https://support.hooksecurity.co/reseller-guide?hsLang=en)
- [Hook Security Updates](https://support.hooksecurity.co/hook-security-updates?hsLang=en)
- [Onboarding Guides](https://support.hooksecurity.co/onboarding-guides?hsLang=en)
- [Managed Services](https://support.hooksecurity.co/managed-services?hsLang=en)

- [Default HubSpot Blog](https://hooksecurity-6535385.hs-sites.com/blog)

[![Newsletter\_Logo-08](https://support.hooksecurity.co/hs-fs/hubfs/Newsletter_Logo-08.png?width=250&height=59&name=Newsletter_Logo-08.png "Newsletter_Logo-08")](http://hooksecurity.co)

Proudly Headquartered in Lakeland, Floirda

<https://www.linkedin.com/company/hooksecurity>

Copyright © 2026, Hook Security Inc.