# Perspective Trigger Component Event by Script

**URL:** <https://forum.inductiveautomation.com/t/perspective-trigger-component-event-by-script/53664>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 2, 2021, 9:05am UTC](https://forum.inductiveautomation.com/t/perspective-trigger-component-event-by-script/53664 "2021-12-02T09:05:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiawei.liu](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@jiawei.liu](https://forum.inductiveautomation.com/u/jiawei.liu)\
**Post date:** [December 2, 2021, 9:05am UTC](https://forum.inductiveautomation.com/t/perspective-trigger-component-event-by-script/53664/1 "2021-12-02T09:05:53Z")

</div>

Can I Trigger Component Event (ex : onClick) by script(maybe another component value change script)?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 2, 2021, 12:10pm UTC](https://forum.inductiveautomation.com/t/perspective-trigger-component-event-by-script/53664/3 "2021-12-02T12:10:57Z")

</div>

you should never do this. (also not possible through normal means)

instead make whatever script you wanna call a global script (or custom methode) and call that on the evetn and on whatever script you want to use it aswell
