Here is sample JavaScript to create a popup menu using the app.popUpMenu method.

This sample PDF contains one button and one text field. When user clicks on the button, a popup menu is displayed with 3 options: opt1, opt, opt3. When the user selects an entry in the popup menu, the value is set into the text field.

var result = app.popUpMenu("opt1", "opt2", "opt3");
this.getField("Text1").value=result;
Button has a Javascript that will display a popupmenu when clicked
Button has a Javascript that will display a popupmenu when clicked
Tagged: