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

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

Community Expert ,
Aug 13, 2023 Aug 13, 2023

Copy link to clipboard

Copied

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

Views

576

Translate

Translate

Report

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

Votes

Translate

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.

Votes

Translate

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

Copy link to clipboard

Copied

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

notes.png

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

@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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

I got it.

Votes

Translate

Translate

Report

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