# UXP Starter Template Plugins Crash InDesign on Running "Show Alert" Command in v19.X

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-starter-template-plugins-crash-indesign-on-running-show-alert-command-in-v19-x/8109>\
**Category:** InDesign\
**Created:** [July 8, 2024, 1:42pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-starter-template-plugins-crash-indesign-on-running-show-alert-command-in-v19-x/8109 "2024-07-08T13:42:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![andrea.daru](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@andrea.daru](https://forums.creativeclouddeveloper.com/u/andrea.daru)\
**Post date:** [July 10, 2024, 7:54am UTC](https://forums.creativeclouddeveloper.com/t/uxp-starter-template-plugins-crash-indesign-on-running-show-alert-command-in-v19-x/8109/5 "2024-07-10T07:54:44Z")

</div>

The only solution that I’ve found to use dialog in InDesign 19.4 reliable both on windows and macos.

> [@\`window.alert\` in a UXP plugin crashes InDesign](http://forums.creativeclouddeveloper.com/t/window-alert-in-a-uxp-plugin-crashes-indesign/6647/6):
>
> Unfortunately it doesn’t work in InDesign smiling_face_with_tear I opted to use the (UXP) Dialog, even if they are not fully compatible. I recommend using the helper library “Adobe XD Plugin Helpers”. In my case I was using InDesign 19.4 which has a bug that always places the Dialog in the lower left corner ignoring also the dimension provided. I randomly found a solution: force the dialog dimension via css for some reason make InDesign display the Dialog in the center of the screen. dial…

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/uxp-starter-template-plugins-crash-indesign-on-running-show-alert-command-in-v19-x/8109)._
