# Adding Text to tag bindings

**URL:** <https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 30, 2023, 9:27pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559 "2023-11-30T21:27:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wally\_Long](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@Wally\_Long](https://forum.inductiveautomation.com/u/Wally_Long)\
**Post date:** [November 30, 2023, 9:27pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/1 "2023-11-30T21:27:46Z")

</div>

I'm trying to use a text (or numeric) field to display the contents of a tag. I can bind the tag to the text field and it works just fine. The tag is a number in milliseconds. In the text field I would like to have the tag contents and add "ms" after it.  
I haven't been able to find the right syntax to make it work.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 30, 2023, 9:36pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/2 "2023-11-30T21:36:04Z")

</div>

Create an expression binding on the tag and concatenate the `' ms'` string to it (with a space as per SI standard).

![ms binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d84b437c6a93326011199f76acb4298122d9af19.png)

This generally isn't a good idea - especially for a Text component which would typically be bound to a tag or property. The user should only be able to edit the numeric value. Having the units in there will mess things up. Keep your GUI "standard".

---

<div class="post-metadata">

**Author:** ![Wally\_Long](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@Wally\_Long](https://forum.inductiveautomation.com/u/Wally_Long)\
**Post date:** [November 30, 2023, 9:41pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/3 "2023-11-30T21:41:48Z")

</div>

Thank you. I was close. I was trying to use && instead of +.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 30, 2023, 9:43pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/4 "2023-11-30T21:43:04Z")

</div>

See my update (completed while you were responding).

Why are you adding the units into what should be a value entry component? Adding units to a label wouldn't be so bad but you'll struggle to right-align numeric fields if you have several in a column.

---

<div class="post-metadata">

**Author:** ![Wally\_Long](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@Wally\_Long](https://forum.inductiveautomation.com/u/Wally_Long)\
**Post date:** [December 1, 2023, 10:12am UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/5 "2023-12-01T10:12:53Z")

</div>

This particular field is display only. The customer wants it to look as much like their example as possible.

---

<div class="post-metadata">

**Author:** ![eddie\_johnson](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@eddie\_johnson](https://forum.inductiveautomation.com/u/eddie_johnson)\
**Post date:** [December 1, 2023, 1:45pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/7 "2023-12-01T13:45:25Z")

</div>

How would you display the tags engineering unit instead of static text?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 1, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/adding-text-to-tag-bindings/82559/8 "2023-12-01T13:52:16Z")

</div>

`{[default]myTag} + " " + {[default]myTag.EngUnit}`

All of the tag's properties are selectable from the Browse Properties button on the right side of the Configure Expression Binding dialog.
