# Access attribute tag in experience context variable

**URL:** https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628
**Category:** Help
**Tags:** experience
**Created:** [February 11, 2020, 11:16pm UTC](https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628 "2020-02-11T23:16:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Edward\_Cline](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@Edward\_Cline](https://forums.losant.com/u/Edward_Cline)
#### Post date: [February 11, 2020, 11:16pm UTC](https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628/1 "2020-02-11T23:16:44Z")

</div>

Could you provide an example of how to access attribute tags from an experience view context variable? Accessing a device tag would be something like this: {{ctx.deviceId-0.tags.ch3displayMin.[0]}}. How would you do the same thing if ch3 was an attribute and displayMin was a tag defined on that attribute? I would like to use this to manage display of gauge block titles, engineering units and min/max ranges.

---

<div class="post-metadata">

### Author: ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)
#### Post date: [February 12, 2020, 3:22pm UTC](https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628/3 "2020-02-12T15:22:58Z")

</div>

Hi @Edward_Cline,

I want to be sure I am understanding your question. Are you trying to access attribute tags using the Device ID context variable? Or are you trying to reference a variable within another to access the tag value?

In the case you are trying to access attribute tags, I have included a screenshot of a Device ID context variable object below:

 ![Screen Shot 2020-02-12 at 10.18.35 AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/7/775275fecb486902d43b97b6f39be605cfc1776d.png)

This device does not have any attribute tags, so the `tags` object is empty.

Looking forward to hearing your responses and diving in!  
Julia

---

<div class="post-metadata">

### Author: ![Edward\_Cline](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@Edward\_Cline](https://forums.losant.com/u/Edward_Cline)
#### Post date: [February 16, 2020, 6:59pm UTC](https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628/5 "2020-02-16T18:59:50Z")

</div>

HI Julia,

Using your example, I’ve found the following which works (ch0pv is the attribute, eu is the attribute tag):  
` {{ctx.deviceId-0.attributes.ch0pv.tags.eu}}`

Thanks for the help!

---

<div class="post-metadata">

### Author: ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)
#### Post date: [February 17, 2020, 11:02am UTC](https://forums.losant.com/t/access-attribute-tag-in-experience-context-variable/2628/7 "2020-02-17T11:02:02Z")

</div>

Hi @Edward_Cline,

Great to hear it! Please let me know if you have any further questions. 😄

Thanks,  
Julia
