Expand my Community achievements bar.

Using app.popUpMenu() in Livecycle

Avatar

Level 1

I have read some articles by T Parker on how to create popup menus buttons with Acrobat but I can not get them to work in LiveCycle.  The pop up menus work but I can not get it to return a value.  Can this even be used for LiveCycle and if so how?

5 Replies

Avatar

Level 8

var cChoice = app.popUpMenu("Introduction", "-", "Chapter 1",

[ "Chapter 2", "Chapter 2 Start", "Chapter 2 Middle",

["Chapter 2 End", "The End"]]);

app.alert("You chose the \"" + cChoice + "\" menu item");

I copied that straight from the Acrobat API Reference and into LiveCycle Designer and it worked immediately for me.

Kyle

Avatar

Level 5

DebGFirst,

Can you post your code - Are you getting any value back in the variable - ( Like cChoice  above )?

Avatar

Level 1

I am able to get this code to work as well but my question is what is the code to get the return value to populate a text box.  I was using cRtn but this does not work.

I really appreciate your help Mark and dcidev !

Avatar

Level 1

Thanks dcidev - see my note below to you and Mark.

Avatar

Level 1

I was able to figure it out.

I just added the following:

 

TextField1.rawValue = cChoice;

Thanks again for all of your help !