# Invoke Modal from Panel Plugin

**URL:** <https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [August 19, 2019, 3:43pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168 "2019-08-19T15:43:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.holcombe](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/matt.holcombe/32/417_2.png) [@matt.holcombe](https://forums.creativeclouddeveloper.com/u/matt.holcombe)\
**Post date:** [August 19, 2019, 3:43pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168/1 "2019-08-19T15:43:47Z")

</div>

Is it possible to call the plugin modal view from the plugin panel? I want to do something like a first run / tutorial view with it.

---

<div class="post-metadata">

**Author:** ![jasonfesta](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jasonfesta/32/511_2.png) [@jasonfesta](https://forums.creativeclouddeveloper.com/u/jasonfesta)\
**Post date:** [August 19, 2019, 4:09pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168/2 "2019-08-19T16:09:03Z")

</div>

Ya this would be great for onload animation + FUE followed by using the document panel after FUE / core action is complete.

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [August 19, 2019, 6:31pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168/3 "2019-08-19T18:31:28Z")

</div>

Yes, @kerrishotts told me to look at the e2e-adobe-stock panel plugin example for doing exactly this, when I asked.

---

<div class="post-metadata">

**Author:** ![matt.holcombe](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/matt.holcombe/32/417_2.png) [@matt.holcombe](https://forums.creativeclouddeveloper.com/u/matt.holcombe)\
**Post date:** [August 19, 2019, 9:01pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168/4 "2019-08-19T21:01:52Z")

</div>

Thanks @cpryland, the syntax specifically is in: [/src/components/Preferences.jsx](https://github.com/AdobeXD/plugin-samples/blob/bd2ea779e23cb008ac888e3d5bc931d0c4407f92/e2e-adobe-stock/src/components/Preferences.jsx).

---

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [August 20, 2019, 3:51pm UTC](https://forums.creativeclouddeveloper.com/t/invoke-modal-from-panel-plugin/1168/5 "2019-08-20T15:51:17Z")

</div>

In your plugin you have your menu commands like so:

```
module.exports = {
	commands: {
		showMyDialog: showMyDialog
	}
}

```

When you call your showMyDialog method from a click event from your panel what happens? It should still open.

FYI I’m doing this experimentally but I’ve had a few issues with it (cannot make changes from the background sometimes - _never mind I just fixed this by wrapping calls in editDocument when I invoke the dialog from the panel_).
