# Alert Hello World in UXP

**URL:** <https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184>\
**Category:** InDesign\
**Tags:** uxp\
**Created:** [February 4, 2025, 2:42pm UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184 "2025-02-04T14:42:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GhoulFool](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@GhoulFool](https://forums.creativeclouddeveloper.com/u/GhoulFool)\
**Post date:** [February 4, 2025, 2:42pm UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/1 "2025-02-04T14:42:05Z")

</div>

At the risk of repeating myself on another Indesign forum…

Not so much jumping into the deep end but going swimming with cement flippers with UXP, I try to create an alert in InDesign .injs:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/1/1c51681d3297f3e368b78519c825fa5b8fdc60cf.png)

But not quite as friendly as I’d hoped.

I can get around it by writing a bespoke alert function as mentioned in this recipe [here.](https://developer.adobe.com/indesign/uxp/resources/recipes/debug/)

However… it says [here](https://developer.adobe.com/indesign/uxp/reference/uxp-api/reference-js/Global%20Members/HTML%20DOM/alert/) that Since UXP v7.4, `alert()` can only be invoked in `plugin` via the featureFlags `enableAlerts`. Update your Manifest v5 with the following:

so I’ve updated the manifest:

```auto
{
  "id": "myUniqueId",
  "name": "Hello Worldplugin",
  "version": "0.0.1",
  "description": "Description goes here",
  "summary": "Summary goes here",
  "host": {
    "app": "XD",
    "minVersion": "13.0"
  },
  "uiEntryPoints": [
    {
      "type": "menu",
      "label": "Create Rectangle",
      "commandId": "createRectangle"
    }
  ],
  "featureFlags": {
     "enableAlerts": true
 }
}

```

with just one line script:

```auto
alert("hello!");

```

based on the Developer Starter project - so ignore references to rectangles. But get the same error as above.

So what’s going on?

---

<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:** [February 11, 2025, 8:39am UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/3 "2025-02-11T08:39:47Z")

</div>

The docs page you linked to, clearly says:

> 1. Since UXP v7.4, `alert()` is disabled for `scripts`

And in your post you wrote:

> an alert in InDesign .injs

.injs is a script, not a plugin

---

<div class="post-metadata">

**Author:** ![GhoulFool](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@GhoulFool](https://forums.creativeclouddeveloper.com/u/GhoulFool)\
**Post date:** [February 11, 2025, 1:14pm UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/4 "2025-02-11T13:14:15Z")

</div>

But since the terms script and plugin are so frequently used as synonyms it really doesn’t help.

---

<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:** [February 11, 2025, 1:21pm UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/5 "2025-02-11T13:21:08Z")

</div>

Not sure what you mean by this, but scripts aren’t plugins, no matter how you use the terms 🤔🤷‍♂️

---

<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:** [February 12, 2025, 9:16am UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/7 "2025-02-12T09:16:57Z")

</div>

Different ecosystems and/or platforms call same things differently and different things the same. In every case you’d need to address the docs and Adobes docs clearly distinguish scripts from plugins. I believe you’ve got your answer and it’s not going to change no matter how you prefer things to be called 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![GhoulFool](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@GhoulFool](https://forums.creativeclouddeveloper.com/u/GhoulFool)\
**Post date:** [February 12, 2025, 2:18pm UTC](https://forums.creativeclouddeveloper.com/t/alert-hello-world-in-uxp/9184/8 "2025-02-12T14:18:02Z")

</div>

[@adobe](https://forums.creativeclouddeveloper.com/groups/adobe) Please update the [docs](https://developer.adobe.com/indesign/1688653963277/guides/getting-started/). There are several missing pages: Platform Concepts, Debugging a Script, Migrating, Object Model, Right to Left Scripting, IDJS File Association…
