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

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

Mentor ,
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.png

Shot829.png or Shot831.png

prompt() has no text field.

Shot830.png or Shot832.png

TOPICS
UXP Scripting
889
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

Enthusiast , Aug 13, 2023 Aug 13, 2023

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

notes.png

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
Enthusiast ,
Aug 13, 2023 Aug 13, 2023

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

notes.png

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
Mentor ,
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