Skip to main content
goldilocks22
Participating Frequently
August 4, 2016
Question

Multi-select popup menu that displays selections in text field - Help!

  • August 4, 2016
  • 1 reply
  • 2015 views

Hi,

I'm creating a PDF form with a dropdown list that asks the user a YES/NO question.  If NO is selected, I want a popup menu to provide a list of options the user can select from, and displays those choices (user needs to be able to select more than 1) in a text field.  I'm all Googled out and really could use some help!  I'm the furthest thing from an expert in writing scripts, but I can read/understand how they work and have been successful with some simpler stuff.  Can anyone provide any help?  It would be greatly appreciated!!

Thanks!

This topic has been closed for replies.

1 reply

Inspiring
August 4, 2016

Popup menus (app.popUpMenu, app.popUpMenuEx) don't allow multiple selections. If I had to do this I'd use a custom dialog, which allows all sorts of elements, including multiple check boxes. This is probably the most difficult thing to do in Acrobat JavaScript though. You might be able to find some samples out there if you search around a bit.

goldilocks22
Participating Frequently
August 4, 2016

Thanks George... I thought a popup menu would be the way to go.

I want to keep the form short, so am trying to avoid checkboxes and/or radio buttons.  Is there a way to have a listbox only display the selections the user made?

try67
Community Expert
Community Expert
August 4, 2016

It is actually possible to use a pop-up menu for multiple selections (using the optional check-marks you can add to it), but it requires a bit of scripting.