# Use tag in Label

**URL:** <https://forum.inductiveautomation.com/t/use-tag-in-label/40797>\
**Category:** Ignition\
**Tags:** ignition80, scripting, perspective\
**Created:** [November 19, 2020, 12:54pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797 "2020-11-19T12:54:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [November 19, 2020, 12:54pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/1 "2020-11-19T12:54:31Z")

</div>

Hi) my name is Andrii! I started to learn ignition, but I worked with FTV ME. And somebody can tell me, how I can use two tag in “Label” as like showed on Pictures ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d56c14882b67d57d578fc755ae6dfe4ce9b6217a.png) .  
I want to show how I tried to do it in the top variant . At the bottom what I want to achieve.  
How can I accomplish this using only one LABEL object?

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [November 19, 2020, 4:29pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/2 "2020-11-19T16:29:05Z")

</div>

You could use an expression binding.

```auto
{GDU_Pages/Page} + ' of ' + {GDU_Pages/Max_Page}

```

should probably work.

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [November 19, 2020, 4:32pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/3 "2020-11-19T16:32:11Z")

</div>

> [@zacht](#):
>
> {GDU\_Pages/Page} + ' of ' + {GDU\_Pages/Max\_Page}

it is work!!!! thanks)))

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [November 19, 2020, 4:35pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/4 "2020-11-19T16:35:05Z")

</div>

Glad to hear it! If you want to really pack text into your one label you can try

```auto
"<html><center>Page<br>" + {GDU_Pages/Page} + ' of ' + {GDU_Pages/Max_Page} + "</html>"

```

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 21, 2020, 10:04am UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/5 "2020-11-21T10:04:30Z")

</div>

> [@Andrii.Randiuk](#):
>
> but I worked with FTV ME

I feel sorry for you, but welcome to the light 😀

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 7:15am UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/6 "2021-03-23T07:15:30Z")

</div>

Hi) maybe you can help me? How I can do it in Perspective?  
I wrote this, but it not work very good  
“”+‘Connection Status’+’  
’+’ MCP01: '+{[System]Gateway/Devices/AB1/Status.value}+  
’   
MCP02: '+{[System]Gateway/Devices/AB2/Status.value}+  
’   
MCP03: '+{[System]Gateway/Devices/AB3/Status.value}+  
’   
MySQL: '+{[System]Gateway/Database/MySQL80/Available.value}+""

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [March 23, 2021, 2:31pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/7 "2021-03-23T14:31:03Z")

</div>

I don’t work much with Perspective, but you could try this.

```auto
"<html>Connection Status<br>"
+ "MCP01: " + {[System]Gateway/Devices/AB1/Status.value} + "<br>"
+ "MCP02: " + ... (You would continue on this pattern.)

```

The important thing here is `<br>` for new line. The whitespace in the expression doesn’t matter except it can cause syntax problems if done badly. If you want the text centered you could use `<html><center>` where `<html>` is currently

Worth noting: controlling formatting this way might not be the best way. It might be easier to simply use 4 of whatever component you’re working with.

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 2:34pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/8 "2021-03-23T14:34:40Z")

</div>

i try the same, it doesn`t work

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [March 23, 2021, 2:38pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/9 "2021-03-23T14:38:59Z")

</div>

Without more information no one can help you much. Does it show an error overlay? Throw an error in any logs? Can you post the type of component you’re trying to use? A screenshot of where you’re typing this expression? Any other info about the problem that might be helpful?

Maybe someone more familiar with Perspective can be helpful, but without more information I don’t know what you should try next.

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 3:12pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/10 "2021-03-23T15:12:02Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/4/64d82a63f82ad6a8fd5001d65ee0993e25355347.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/c/6c1e8d1c1c3556e0181eebaab77ccbbfa4a60f51.png)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [March 23, 2021, 4:57pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/11 "2021-03-23T16:57:46Z")

</div>

Man I need more coffee…

OK so what is the error you are seeing? Or what is happening that your don’t want to happen?

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 5:54pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/12 "2021-03-23T17:54:54Z")

</div>

1 enter after status

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 5:55pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/13 "2021-03-23T17:55:48Z")

</div>

End enter doesn’t work after every row

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [March 23, 2021, 5:57pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/14 "2021-03-23T17:57:37Z")

</div>

You would be better off using the markdown component: [https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Markdown](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Markdown)

You can control line breaks etc…

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 23, 2021, 6:09pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/15 "2021-03-23T18:09:24Z")

</div>

Can I use tag In this object?

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [March 23, 2021, 6:20pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/16 "2021-03-23T18:20:14Z")

</div>

I’m not 100% sure. I rarely reference tags like you are in a text. I usually create properties and bind them to tags and then use that in an expression.

Try it an see

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 23, 2021, 8:17pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/17 "2021-03-23T20:17:52Z")

</div>

Markdown is on the money and then you can use html tags as you did in Vision to add inline formatting

---

<div class="post-metadata">

**Author:** ![Andrii.Randiuk](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andrii.Randiuk](https://forum.inductiveautomation.com/u/Andrii.Randiuk)\
**Post date:** [March 24, 2021, 4:02pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/18 "2021-03-24T16:02:21Z")

</div>

It is work!!! tag is using it markdown))))

---

<div class="post-metadata">

**Author:** ![rod.rebman](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rod.rebman](https://forum.inductiveautomation.com/u/rod.rebman)\
**Post date:** [August 26, 2022, 4:20pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/19 "2022-08-26T16:20:33Z")

</div>

Can anyone go into detail on the above - I am trying to create a multiline label that will continuously update:

Source bound via expression to either a tag or property: "STRING START: "+{this.custom.PROPERTY} - this will evaluate once and enable editing via HTML, however if the tag value changes the Source property removes the format edits.

Edit - specifically looking for where I can place the property callout - this doesn’t appear to be able to be placed directly in the Markdown Source property.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 26, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/use-tag-in-label/40797/20 "2022-08-26T17:00:30Z")

</div>

Anything that you type directly into the source prop will be interpreted as a string. So long as it isn’t seen as part of the Markdown syntax or HTML that isn’t escaped or disallowed.

You need to create some type of binding, probably an expression binding, on the Source.

This:

```auto
"STRING START:" + {this.custom.PROPERTY}

```

or this:

```auto
concat("STRING START:", {this.custom.PROPERTY})

```

should work.

[Next page](https://forum.inductiveautomation.com/t/use-tag-in-label/40797.md?page=2)
