Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
1

Display of alert(), confirm(), prompt() in UXP is wrong

Community Expert ,
Aug 13, 2023 Aug 13, 2023

The environment is as follows.

  • InDesign 18.5.0 Japanese edition
  • UXP 7.1.1
  • Windows 10 22H2 (19045.3208)

After running the following script, you should see something like the attached image.

// htmlfunc.idjs
alert("message");
let s = confirm("Choose button");
s = prompt("Input your name","");

Is this a phenomenon specific to the Windows edition, or is it a phenomenon specific to the Japanese edition? "Is it just me?"

Shot828.pngexpand image

Shot829.pngexpand image or Shot831.pngexpand image

prompt() has no text field.

Shot830.pngexpand image or Shot832.pngexpand image

TOPICS
UXP Scripting
635
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Aug 13, 2023 Aug 13, 2023

It is noted in several places that InDesign does not yet support this.

notes.pngexpand image

Translate
Adobe Employee , Aug 13, 2023 Aug 13, 2023

@Omachi Alerts in ID 18.5 has some known issues. Do use console.log or other debugging/logging mechanisms until UD 19.0. We plan to fix these known issues in ID 19.0 which will have UXP 7.2 integrated.

Translate
Community Expert ,
Aug 13, 2023 Aug 13, 2023

It is noted in several places that InDesign does not yet support this.

notes.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 13, 2023 Aug 13, 2023

@Omachi Alerts in ID 18.5 has some known issues. Do use console.log or other debugging/logging mechanisms until UD 19.0. We plan to fix these known issues in ID 19.0 which will have UXP 7.2 integrated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2023 Aug 14, 2023
LATEST

I got it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines