# Can Button Text Show Tag?

**URL:** <https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 19, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715 "2022-11-19T15:12:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 19, 2022, 3:12pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715/1 "2022-11-19T15:12:22Z")

</div>

Is there a way for me to display text on a Button that would be linked to Tags?

I have a Tag[0] that shows a meter Id 21000580 and then tag[6] = 21000763

I would like to have the text on my button something like this (21000580 - 21000763)

The last number is not always the same thats why I want to get that data from a tag.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [November 19, 2022, 3:40pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715/2 "2022-11-19T15:40:40Z")

</div>

Hi David, I know you are on 7.9 vision

It is possible to bind the Text property of a Button back to a tag.

Perhaps if you only want the last number to change, you could try an indirect tag binding?

In my example I have bound to the value, are your 21xxxxxx values or other properties?

 ![binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/92cf726c49c0e2fbf80af3772154e33c78f26499.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 19, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715/3 "2022-11-19T15:42:42Z")

</div>

Add a custom property to your button to hold the tag value. Use a tag binding, indirect if necessary. For the button's text property, use an expression binding with either `numberFormat()` or `stringFormat()` expression functions, with the arithmetic in the expression.

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 19, 2022, 4:38pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715/4 "2022-11-19T16:38:02Z")

</div>

OK, I've got what I need for my button text, which also required some html code but when I go to save it it will not save the html code.

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [November 19, 2022, 6:33pm UTC](https://forum.inductiveautomation.com/t/can-button-text-show-tag/66715/5 "2022-11-19T18:33:39Z")

</div>

I've got what I need thanks for all the help.
