# runScript in tag expression

**URL:** <https://forum.inductiveautomation.com/t/runscript-in-tag-expression/4786>\
**Category:** Ignition\
**Created:** [July 8, 2012, 11:48am UTC](https://forum.inductiveautomation.com/t/runscript-in-tag-expression/4786 "2012-07-08T11:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [July 8, 2012, 11:48am UTC](https://forum.inductiveautomation.com/t/runscript-in-tag-expression/4786/1 "2012-07-08T11:48:16Z")

</div>

Hi,  
Is it possible to put a runScript who call a function module in a tag?  
The call works well in a button and a link property. But does not work in the expression of a tag, this is my error image.  
Thanks.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1906ac1e9094c2ef6b725777e956a35362fbaf8b.png)

---

<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:** [July 9, 2012, 3:20am UTC](https://forum.inductiveautomation.com/t/runscript-in-tag-expression/4786/2 "2012-07-09T03:20:45Z")

</div>

No, it’s not possible right now.

Tags are global (gateway) scoped, whereas your script modules are project scoped, so they can’t interact. We’ve got a couple different ideas to address this, but I don’t have a timeline on when they will be implemented.

We’re thinking:

1. Make a global module area.

and/or

1. Make the runScript call take a project name parameter so it can figure out which project/module to find the script in.

---

<div class="post-metadata">

**Author:** ![2Gi\_Technologie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/2gi_technologie/32/3307_2.png) [@2Gi\_Technologie](https://forum.inductiveautomation.com/u/2Gi_Technologie)\
**Post date:** [July 9, 2012, 9:15pm UTC](https://forum.inductiveautomation.com/t/runscript-in-tag-expression/4786/3 "2012-07-09T21:15:47Z")

</div>

Thank you Kevin,  
I understand if I had to choose between your two solutions, I would choose both 😛  
Good day.
