The value in info(“trigger”) returns the name of the object – it tells you what object was clicked (you need to assign a name to the object if you want to be able to determine this)
The object that was clicked, the PopupButtonObject, had its name assigned in its Attributes panel.
To find out what menu item was selected, you need to look at the value of the field or variable that is associated with the object, the Data variable.
Stangely enough, selection of any menu item the did not update the contents of the data variable
fRunsPUMchoice, which is why I was using
info("trigger"). This doesn’t really matter as it turns out that
info("trigger") does return the chosen menu item, as in my example.
None of this was expected behaviour, and I wonder if it has something to do with the use of the menu formula code.