Skip to main content
Known Participant
December 11, 2019
Question

Javascrips popups box resizing?

  • December 11, 2019
  • 2 replies
  • 1153 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

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.