# Reference ticket variables for display in text field

**URL:** https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836
**Category:** Technical assistance
**Created:** [March 27, 2024, 12:52am UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836 "2024-03-27T00:52:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mwescet](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@mwescet](https://community.zammad.org/u/mwescet)
#### Post date: [March 27, 2024, 12:52am UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836/1 "2024-03-27T00:52:49Z")

</div>

### Infos:

I am trying to reference variables in a text field when creating a ticket however the value of the reference is not rendering. For example I want to reference the customer name for a given ticket in the text box. I am trying to do this using “Hello #{ticket.customer.firstname}” however the value of firstname does not render during ticket creation and after saving the ticket. Strangely if I type :: to display a list of variable references “Hello #{ticket.customer.firstname}” is available and if I select it from the drop down list it works. It does not work when I manually type the reference. I want to use this feature for a number of other variables e.g. ticket.installation\_id\_x. These variables are not visible as an option after type :: in text box.

- Used Zammad version: 6.2.0
- Used Zammad installation type: docker-compose
- Operating system: Mac
- Browser + version: Google chrome

### Expected behavior:

In a text attribute “Hello #{ticket.customer.firstname}” should render to “Hello Max”

### Actual behavior:

In a text attribute “Hello #{ticket.customer.firstname}” displays to “Hello #{ticket.customer.firstname}”

### Steps to reproduce the behavior:

- Create user with firstname set to Max. Create ticket referencing customer. Type “Hello #{ticket.customer.firstname}” in text field and save the ticket.

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [March 27, 2024, 6:40am UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836/2 "2024-03-27T06:40:22Z")

</div>

Hi @mwescet. I guess you’re looking for [text modules](https://admin-docs.zammad.org/en/latest/manage/text-modules.html).

---

<div class="post-metadata">

### Author: ![mwescet](https://community.zammad.org/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@mwescet](https://community.zammad.org/u/mwescet)
#### Post date: [March 27, 2024, 10:59pm UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836/3 "2024-03-27T22:59:37Z")

</div>

Thanks @fliebe92 after setting up relevant text modules this is now working during ticket creating and editing. Is it possible to reference text modules in a ticket template? So far I am unable to do this, typing :: does not provide a list of existing text modules and if I insert manually a reference e.g. #{ticket.customer.organization.name} this does not render to the value of the variable.

---

<div class="post-metadata">

### Author: ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)
#### Post date: [March 28, 2024, 5:10am UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836/4 "2024-03-28T05:10:48Z")

</div>

From the docs: `Please note that ticket templates do not allow the use of variables.`

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [March 23, 2025, 5:11am UTC](https://community.zammad.org/t/reference-ticket-variables-for-display-in-text-field/13836/5 "2025-03-23T05:11:05Z")

</div>

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.
