Skip to main content
Known Participant
Dec 11, 2019 2:46 PM UTC
Question

Javascrips popups box resizing?

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 is closed to new replies. Start a new post to keep the conversation going.

10 replies

Bernd Alheit
Community Expert
Community Expert
Dec 11, 2019 4:12 PM UTC

How does you create the popups?

Translate
Known Participant
Dec 11, 2019 4:18 PM UTC

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

Translate
Bernd Alheit
Community Expert
Community Expert
Dec 11, 2019 5:34 PM UTC

You can show a invisible button with text.

Translate
try67
Community Expert
Community Expert
Dec 11, 2019 3:45 PM UTC

No.

Translate
Known Participant
Dec 11, 2019 3:52 PM UTC

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.

Translate
try67
Community Expert
Community Expert
Dec 11, 2019 4:44 PM UTC

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.

Translate