# API 2 - "dialogOptions": "display" - Any way to do this?

**URL:** https://forums.creativeclouddeveloper.com/t/api-2-dialogoptions-display-any-way-to-do-this/3724
**Category:** UXP Plugin API
**Created:** [October 11, 2021, 1:36am UTC](https://forums.creativeclouddeveloper.com/t/api-2-dialogoptions-display-any-way-to-do-this/3724 "2021-10-11T01:36:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ddbell](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ddbell/32/1030_2.png) [@ddbell](https://forums.creativeclouddeveloper.com/u/ddbell)
#### Post date: [October 11, 2021, 1:36am UTC](https://forums.creativeclouddeveloper.com/t/api-2-dialogoptions-display-any-way-to-do-this/3724/1 "2021-10-11T01:36:59Z")

</div>

I have a plugin the needs to show the dialogs for a few different user adjustments. This works in API version 1 using `"dialogOptions": "display"` in the descriptor.

However, it seems this can’t be done in API 2. It does stop with the dialog but the user can’t access it because the executeAsModal blocks user interaction with the dialog.

Is there any workaround for this? I am very deep into the development of my next plugin in API 2, which I like for the suspendHistory and the executeAsModel… except the lack of a show dialog for interaction is a show stopper for this plugin. I need to convert this plugin to API 1 if that is the case because this plugin must have the option to show the dialog for user interaction.

---

<div class="post-metadata">

### Author: ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)
#### Post date: [December 18, 2021, 7:55pm UTC](https://forums.creativeclouddeveloper.com/t/api-2-dialogoptions-display-any-way-to-do-this/3724/2 "2021-12-18T19:55:03Z")

</div>

I think I have same issue. Trying to replicate _Fill Layer_ creation as it is on _Layers_ panel. When user selects any fill layer, dialog is shown for some user adjustments. If user cancels, that layer is deleted. If user clicks _OK_, layer is left as is with all user adjustments.

Now when I try to do the same, if I don’t define `dialogOptions` at all, layer is created with defaults. If I define with `display`, nothing happens at all ☹

If I change `modalBehavior: "execute"` to `modalBehavior: "wait"` in BP, I get this error:

> modalBehavior with wait is not supported while the plugin is inside a modal scope
