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?
Views
Replies
Total Likes
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
DebGFirst,
Can you post your code - Are you getting any value back in the variable - ( Like cChoice above )?
Views
Replies
Total Likes
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 !
Views
Replies
Total Likes
Thanks dcidev - see my note below to you and Mark.
Views
Replies
Total Likes
I was able to figure it out.
I just added the following:
TextField1.rawValue = cChoice;
Thanks again for all of your help !
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies