# Tooltips: Including Path Info and Special Characters

**URL:** <https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562>\
**Category:** Ignition\
**Created:** [January 19, 2015, 5:40am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562 "2015-01-19T05:40:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisGray](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@ChrisGray](https://forum.inductiveautomation.com/u/ChrisGray)\
**Post date:** [January 19, 2015, 5:40am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/1 "2015-01-19T05:40:55Z")

</div>

Looking at providing additional information in the Tooltips for Metadata on Tags.  
Currently you can include Parameters within the Tooltip along with any String the user wishes to add.

Question:  
1.) How would you include the full Folder Path information within the Tooltip for the Tag?  
Example:(Say the Tag is in the following folder structure)  
Plant  
Area1 \<-- Folder name  
Equipment1 \<-- Folder name  
Motor1.Amps \<-- Tag  
I would like to show in the Tooltip: “Area1.Equipment1.Motor1.Amps”  
2.) How do you add a Carriage Return Line Feed to the Tooltip so you can display multiple lines?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 19, 2015, 4:56pm UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/2 "2015-01-19T16:56:51Z")

</div>

1. if you have just a few tags, you can right-click on the tag and pick ‘Copy Tag Path’ which you can then paste into the tooltip and modify to your heart’s content.  
If you have a lot of them, then you can get it through scripting via system.tag.browseTags() and iterate through all of them.

2. html formatting will do the trick.

```auto
<html>Line1<br>Line2<br>Line3...
```

---

<div class="post-metadata">

**Author:** ![ChrisGray](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@ChrisGray](https://forum.inductiveautomation.com/u/ChrisGray)\
**Post date:** [January 20, 2015, 3:37am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/3 "2015-01-20T03:37:29Z")

</div>

Thanks for your suggestion Jordan.

For question #1 above I am looking for a more dynamic method to get this information.

For question #2 I may be misunderstanding something as I am not sure if you can add HTML to the Tooltip on the Meta data for a Tag (at least when I tried it didn’t seem to work). See my picture attached.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b5f8f00ac742e7d071f20fd4e400bc92ea67fc2a.jpg)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 20, 2015, 11:15am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/4 "2015-01-20T11:15:00Z")

</div>

I’ll demonstrate question 2 first, since question 1 will require a bit more tooling around… or tooltipping around, if you prefer…

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/32e4846619bc063409b9ecb46990b76f2db837be.png)  
  
A shameless plug, I know. 😆  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/20fd19cb23a1c7670115bad3329a3f065f61dfdb.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 20, 2015, 12:18pm UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/5 "2015-01-20T12:18:18Z")

</div>

Okay. I've come up with a workaround.  
In the UDT Definintion, put in a parameter hold the path... oddly enough, I chose 'Path'. 😉

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/579a829ad22673374a0cc680dd8353abf1b7cbe1.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8afc54eefd6f637314a83d81c5de5b99fd0c9543.png)  

Running this script will put the path names (minus the instance name, of course) and stick it in the {Path} parameter.

```plaintext
tagList=system.tag.browseTags(UDTParentType="UDT_Test", recursive=True)

for tag in tagList:
  udtName=str(tag)
  pathName=str(tag.path).replace(str(tag.name),'')
  system.tag.editTag(tagPath=udtName,parameters={"Path":pathName})

```

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/81bd92577814922a536118f0e140d18499ba2f92.png)

Note that this is written for a specific UDT type (UDT\_Test). This can be rewritten a bit to hit all UDT Instances. It would just take a bit longer to execute, since it would have to check every tag to see if it's a UDT. 🙂

Also, it's not the most dynamic way of doing it. But it can be put into a gateway timer script to auto-refresh every so often.

---

<div class="post-metadata">

**Author:** ![ChrisGray](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@ChrisGray](https://forum.inductiveautomation.com/u/ChrisGray)\
**Post date:** [January 22, 2015, 4:35am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/6 "2015-01-22T04:35:37Z")

</div>

Thanks Jordan. Much appreciated.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [April 12, 2018, 11:53am UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/7 "2018-04-12T11:53:33Z")

</div>

Jordan,

That script is genius. I never would have thought of that and you just saved me a massive amount of time. Thank you, sir!

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 12, 2018, 12:27pm UTC](https://forum.inductiveautomation.com/t/tooltips-including-path-info-and-special-characters/9562/8 "2018-04-12T12:27:52Z")

</div>

You are most welcome, sir! 🙂
