Answered
Hi all,
This issue is driving me nuts...
I have created a dialog with several popup fields, all need to have the same values (a list of colors). So far so good. But when I try to find which value was actually selected, nothing works. I would appreciate any ideas as to why...
Here's the relevant parts of my code:
initialize: function (dialog) { var listColors = { "": +1, "Yellow": -1, "Green": -2, "Red": -3, "Blue": -4, "Orange": -5, "Pink": -6, "Brown": -7, "Purple": -8 } var dlgInit = { "col1": listColors, "col2": listColors, } dialog.load(dlgInit); }
commit:function (dialog) { var rslts = dialog.store(); var sel =""; for(var e in rslts["col1"]) { if (rslts["col1"][e] > 0) { app.alert(rslts["col1"][e]) } } },
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script