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 4, 2024

To remove warning you need to run script from privileged context like installing script on your machine (PC) which is not helpful if PDF will be used by other users (they would need to do the same).

You could also create a hidden text field with your message and show/hide it using the button, or use buttons tooltip to show message while mouse hover over button.