Expand my Community achievements bar.

Accessing a dialog's elements in Javascript

Avatar

Former Community Member
I've created a popup dialog for an Adobe Acrobat e-form. Once the dialog pops up I want to grey out a list box and when an entry in another list box is selected I want to update a 2nd list box. My question is how do I get a handle on the list box elements in the dialog? Do I use something like this.getElement or this.resolveNode or dialog.getElement? The documentation doesn't go very far on how to use Javascript to gain access to a dynamically created dialog.



I tried a bunch of different things but everything seemed to return NULL.



eg.

In the dialog initialize method:

var listbox1Element=this.getElement("listbox1");

var listbox1Element=this.resolveNode("listbox1");

var listbox1Element=dialog.getElement("listbox1");

var listbox1Element=dialog.resolveNode("listbox1");
1 Reply

Avatar

Former Community Member
Forget my question. I found some more documentation and have now realized that I can use the following:

dialog.load

dialog.store



Weird stuff. I have a history of DHTML and Javascript and these dialogs aren't quite the same.