Return a value to a text box from a popup menu
Ok, so I am trying to create a multi level pop up menu and have the selected option appear in a text box. I can either do this by running the script directly in the text box the result should appear in or by having a small button next to the text box to launch the script.
As an example, here is the type of script I would be using to generate the menu itself:
var aFruits = ["Fruits","Apples",["Oranges","navel","valencia"]];
var aVeggies = ["Vegetables","Beans","Corn"];
var cRtn = app.popUpMenu(aFruits, aVeggies);
I know very little about javascript and so the problem I m having is getting it to return the value to the text box. When I run this script, the menu is generated but when a selection is made, it just goes away.
So the question I have is. what code do I need to add to this to get it to return the selected option to a text filed called M-MainCaseMaterial.
Thank you in advance!!!
