Expand my Community achievements bar.

Hyperlinking to document from drop-down list selection

Avatar

Former Community Member
As the title hopefully describes, I would like to launch a pdf file (or even simply just print the document) on selecting a value from a drop-down list. I can do this via a dedicated button, but can't work out how to tie the app.launchURL command to the list values. Also which event should I use, "Calculate" perhaps?

Any help appreciated.
1 Reply

Avatar

Former Community Member
I think I've managed to answer my own question by modifying an idea posted elsewhere on this forum.

Using the Exit event of the drop-down list I added the following script, which was able to link to the server files I wanted:



switch(this.rawValue)

{

case "a":

app.launchURL ("http://.../a.pdf");

break

case "b":

app.launchURL ("http://.../b.pdf");

break

case "c":

app.launchURL ("http://.../c.pdf");

}



This seems to do the trick.