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

Is it possible to change the width of the alert box display on the JavaScript side?

Participant ,
Mar 30, 2021 Mar 30, 2021

Is it possible to change the width of the alert box display on the JavaScript side?

 

app.alert ("(1) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ n (2) bbbbbbbbbbbbbbbbbbbb \ n (3) cccccccccccccccccccccc", 3);

 

For example, if I write as above, the sentence (1) will be displayed in two lines.

 

This is difficult to read and looks ugly, so I want to display it in one line.

TOPICS
Acrobat SDK and JavaScript
1.2K
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 ,
Mar 30, 2021 Mar 30, 2021

NO, Acrobat does whatever it want with the text you give it.

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Participant ,
Mar 31, 2021 Mar 31, 2021

Thank you. I understood.

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 ,
Mar 31, 2021 Mar 31, 2021

May be possible when you replace the app.alert by a dialog.

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
Participant ,
Mar 31, 2021 Mar 31, 2021

Thank you. I haven't tried the dialog box yet, so I'll look it up.

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 ,
Mar 31, 2021 Mar 31, 2021
LATEST

Look up the "app.execDialog" function in the Acrobat JavaScript Reference.

Here's some info on Custom Dialogs, and a link to an online tool for designing Custom Dialogs:

https://www.pdfscripting.com/public/Alerts-Popups-and-Other-UI.cfm#JSCustomDlg

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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