Skip to main content
Participant
August 17, 2016
Question

Popup box generated by dropdown selection

  • August 17, 2016
  • 3 replies
  • 1164 views

I have a a form with a dropdown list (named "MatrixChart") that contains 5 options. I'm trying make a popup box automatically pop based on the selection in the MatrixChart dropdown box. This popup box will contain 20 possible color selections, which are I created in a SEPARATE acrobate form, with buttons currently labeled as 1 through 20. These buttons have a fill color specific to the color of the button label (i.e the "red" selection has a red fill). The 20 colors visible (as possible selections) in the popup window will change and be dependent on which selection the user chooses of the five options in the MatrixChart dropdown. Since I created my perfect dropdown in a seperate pdf form....is it possible to write a script in the dropdown box that would open this SECOND form (the color chart) and allow the user to select a color option, causing the user's option to appear in a different text box (currently label as "MatrixColor"). Is it possible to even use a pdf form INSIDE of a of form, or do I have to write a long complicated script and create the popup window that way (dialog box??)? Obviously I'm new to this.....and I can send or attach more files if needed.....Thanks!

This topic has been closed for replies.

3 replies

Participant
August 17, 2016

Thanks try67. I'm doing this for work....but on my personal time....so I'm going to try to tackle it first. I understand it's difficult, so I'll contact you for hire if/when I hit a wall.

Participant
August 17, 2016

Thank you try67 for the advise. I'll start looking into creating a dialog box. I haven't had much luck finding online tutorials/examples on dialog boxes as complex as what I'm looking for. Do you have a suggestion on how I might get some coaching?

try67
Community Expert
Community Expert
August 17, 2016

Yeah, it's a complicated subject. There are some good examples in the Acrobat JavaScript API Reference, as well as some on Windjack's website (they used to a have a product that enabled you create dialogs quite easily, but it's discontinued now).

Another good resource is the AcrobatLibrary website, for example: https://acrobatusers.com/tutorials/popup_windows_part5

If you're interested in hiring someone to develop it for you, feel free to contact me privately.

try67
Community Expert
Community Expert
August 17, 2016

Doing it in two separate files is quite complicated. I would suggest using a dialog-box or even a form field within the same PDF, which you can show/hide based on the selection in your drop-down. A dialog-box is also quite tricky to implement, but the benefit of using it is that it's a modal object, meaning the user can't continue interacting with the file until they make a selection (which you can then use) or close the box. So you don't need to wait for them to make a selection when they want to, you're forcing them to do it right away.