Skip to main content
Known Participant
December 11, 2019
Question

Javascrips popups box resizing?

  • December 11, 2019
  • 2 replies
  • 1160 views

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.

This topic has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
December 11, 2019

How does you create the popups?

Known Participant
December 11, 2019

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

Bernd Alheit
Community Expert
Community Expert
December 11, 2019

You can show a invisible button with text.

try67
Community Expert
Community Expert
December 11, 2019

No.

Known Participant
December 11, 2019

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.

try67
Community Expert
Community Expert
December 11, 2019

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?


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.