# Trigger button event from pressing another button

**URL:** <https://forum.inductiveautomation.com/t/trigger-button-event-from-pressing-another-button/886>\
**Category:** Archived Topics\
**Created:** [December 2, 2008, 5:35pm UTC](https://forum.inductiveautomation.com/t/trigger-button-event-from-pressing-another-button/886 "2008-12-02T17:35:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [December 2, 2008, 5:35pm UTC](https://forum.inductiveautomation.com/t/trigger-button-event-from-pressing-another-button/886/1 "2008-12-02T17:35:45Z")

</div>

I have three buttons.

Button1  
Button2  
Button3

Button1 and Button2 do two seperate functions. Is it possible to have Button3, when pressed, trigger the actionperfromed on both Button1 and Button2 at the same time?

Thank you,  
Jonathan

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [December 2, 2008, 6:01pm UTC](https://forum.inductiveautomation.com/t/trigger-button-event-from-pressing-another-button/886/2 "2008-12-02T18:01:23Z")

</div>

Sure, just call doClick() on Button1 and Button2:

`event.source.parent.getComponent("Button1").doClick()
event.source.parent.getComponent("Button2").doClick()`
