Skip to main content
Participating Frequently
September 4, 2024
Question

How can I create a pop-up textbox that pops up when clicking a button in a PDF?

  • September 4, 2024
  • 1 reply
  • 3135 views

I have a PDF document with mostly text and some images and would like to create buttons for the various sections of the document that trigger text fields to pop up and provide explanatory info about the individual sections when users click on the buttons.

 

Is there a way to do this? I've looked at buttons and their settings but haven't been able to figure it out.

Thank you!

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
September 4, 2024

You could use alert pop for that, as 'Mouse UP' action of a button select 'Run a JavaScript' and add this script:
app.alert("This is the explanatory information for this section.", 3);

Participating Frequently
September 4, 2024

Cool, yeah that could probably work for me. The title of the window that pops up is "Warning: JavaScript-Window". Do you happen to know if there's a way to change that text?

Nesa Nurani
Community Expert
Community Expert
September 5, 2024

Thank you so much for your reply but it's still not working. I did try clicking "add" but the only thing I can select for adding is the button itself. Nothing else shows up in the list.

 

I wanted to try your suggestion with JavaScript but how do I know the name of my text field? I added a text field to the document but I can't find any option for naming the text field or accessing any kind of properties about it. All I can do is move it around and change the text written in the field.


Can you share your file with us?