# Plugin: access to toolbarEvent from modal

**URL:** <https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413>\
**Category:** Development\
**Created:** [October 19, 2021, 7:02am UTC](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413 "2021-10-19T07:02:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [October 19, 2021, 2:28pm UTC](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413/2 "2021-10-19T14:28:12Z")

</div>

The `toolbarEvent` should be available in your modal controller (discourse-n8n-wf), you don’t need to pass it. You can also look at how other modals do this, for example, see `discourse-post-event-builder.js.es6` in the poll plugin.

---

_[View the full topic](https://meta.discourse.org/t/plugin-access-to-toolbarevent-from-modal/206413)._
