# How to associate events to the preview/design mode button

**URL:** <https://forum.inductiveautomation.com/t/how-to-associate-events-to-the-preview-design-mode-button/7898>\
**Category:** 3rd Party Modules\
**Created:** [January 24, 2014, 9:58am UTC](https://forum.inductiveautomation.com/t/how-to-associate-events-to-the-preview-design-mode-button/7898 "2014-01-24T09:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose.granero](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jose.granero/32/11190_2.png) [@jose.granero](https://forum.inductiveautomation.com/u/jose.granero)\
**Post date:** [January 24, 2014, 9:58am UTC](https://forum.inductiveautomation.com/t/how-to-associate-events-to-the-preview-design-mode-button/7898/1 "2014-01-24T09:58:41Z")

</div>

Does anyone know how to associate an event/listener to the preview/design button located in the main toolbar?

---

<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:** [March 19, 2014, 11:11pm UTC](https://forum.inductiveautomation.com/t/how-to-associate-events-to-the-preview-design-mode-button/7898/2 "2014-03-19T23:11:09Z")

</div>

This is really no way to be notified of this event, but you can check it through FPMISystem.getMode()
