# Enabled status of UDT tags

**URL:** <https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197>\
**Category:** Ignition\
**Created:** [February 11, 2016, 2:06pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197 "2016-02-11T14:06:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kraenbring](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Kraenbring](https://forum.inductiveautomation.com/u/Kraenbring)\
**Post date:** [February 11, 2016, 2:06pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/1 "2016-02-11T14:06:05Z")

</div>

I have a UDT with some tags enabled and some not. I would like to make certain items visible if the tag is enabled. I’ve tried checking if the value was null with mixed results. The other alternative I could do is to create another memory tag to keep track of what should be visible/enabled or not.

I’ve searched the help for “isEnabled” and it points to MES objects. Is there something that does the same for tags?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 11, 2016, 2:36pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/2 "2016-02-11T14:36:26Z")

</div>

You should be able to read the “Enabled” property using system.tag.read() supplying a tag path with “.Enabled” at the end of it.

Any of the tag properties can be read in this manner, and when no property is supplied then Value is assumed.

---

<div class="post-metadata">

**Author:** ![Kraenbring](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Kraenbring](https://forum.inductiveautomation.com/u/Kraenbring)\
**Post date:** [February 11, 2016, 3:15pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/3 "2016-02-11T15:15:06Z")

</div>

That doesn’t seem to work in my expression script:  
I have a button and when i try to bind the Enabled property to this expression:  
system.tag.read(“Tanks/ST100/ComponentSpecs/Butterfat”).Enabled

I get an error: Scan Error: Illegal character .\> (Line 1 , Char 7)

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [February 11, 2016, 7:58pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/4 "2016-02-11T19:58:37Z")

</div>

Try system.tag.read(“Tanks/ST100/ComponentSpecs/Butterfat.Enabled”)  
It should works

---

<div class="post-metadata">

**Author:** ![Kraenbring](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Kraenbring](https://forum.inductiveautomation.com/u/Kraenbring)\
**Post date:** [February 11, 2016, 9:05pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/5 "2016-02-11T21:05:24Z")

</div>

That didn’t work either. I think that script won’t work within the Expression Property Binding.

That syntax looks like it would only work in Event Handler scripts (python). And since I’m working with a Template, I don’t get an event for initial rendering i can’t set the visibility then. I can try to put the code into the locale event firing, but not liking that.

I’d really love to keep this in the visibility property of the item on my template and not hidden in a script. It makes for better “readability” and allows others to quickly see what I’ve done.

---

<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:** [February 11, 2016, 9:58pm UTC](https://forum.inductiveautomation.com/t/enabled-status-of-udt-tags/11197/6 "2016-02-11T21:58:11Z")

</div>

Expressions! Doh!

Tanks/ST100/ComponentSpecs/Butterfat.Quality != ‘Disabled’
