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

Javascrips popups box resizing?

Community Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

I created a PDF form to be distributed to a lot of clients.  Inside the PDF form I created a lot of information buttons in javascrip.  However, in some occasion there's a lot of text to show for instructions and when using a laptop specially, they can't see the bottom of the box because it goes off screen on the form.  I know all about changing resolution and changing the view size as well, that isn't the problem.  I need to resize the popup box to make it wider instead of longer, to be able to show the text properly.  I was wondering if there's a way to adjust a popup box (or any javascrip created box for that matter), to play with the width and lenght size?  I'm using Acrobat DC.

TOPICS
Acrobat SDK and JavaScript

Views

704

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

No.

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 Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

There's definitely a way to do this.  I've done it before but can't remember where it was now.  The box I had was quite small and I made it way longer somehow, just can't remember where I saw how to do this on the internet.

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

If you figure it out I'll be happy to hear it.

AFAIK, you can't set the alert window's width to a higher value than the maximum it allows.

If you make the text in it longer it just gets wrapped to the next line, even if it's a single word, and the window's height increases to accommodate 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
Community Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

And where is the control for the maximum width you're talking about?  There's got to be a specific place where you can gadge the size isn't there?  Otherwise they need to do something about this because the width is way to small.

Wouldn't there be some kind of javascript command that can be entered to do this?

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

Not everything is customizable in the user interface. In fact, most things aren't.

I think you can specify the window size if you use a Dialog object, but not in an alert window.

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 Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

A Dialog object?  What's the difference between the two?  I don't know anything about Dialog object, I've been using the alert window everywhere because that's the one I know.

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

It's a way of creating more advanced modal objects in Acrobat. It's one of the more complicated features, though.

You can find plenty of information about it here: https://acrobatusers.com/tutorials/popup_windows_part5

And also under the documentation of the exceDialog method of the Document object in the Acrobat JS API Reference.

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

How does you create the popups?

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 Beginner ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

It's created by running a javascript in the action of a form button and using the app.alert scripting.

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 ,
Dec 11, 2019 Dec 11, 2019

Copy link to clipboard

Copied

LATEST

You can show a invisible button with text.

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