Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Passing Values to a dropdown list within a dialog box

Avatar

Not applicable
I am using the app.execDialog(dialog1) command to display a dialog box on my form. The dialog box contains dropdown list (popup). I have found examples that do this but in all the examples they reference the loadDefaults function with hardcoded values.



For example:



loadDefaults: function (dialog)

{

dialog.load(

{

subl:

{

"Acrobat Standard": "111",

"Adobe Reader": "222"

}

})

},



Does anyone know if there is a way to pass values into the loadDefaults via a variable etc.. I can get the data I want to populate the dropdown with but I cant figure out how to load it into the control.



Thanks

Ken
0 Replies