Kelly,
Since LiveCycle Designer doesn't come with an object which is a "link button" (which, when clicked, launches a specified link in a browser), you have to use a generic button object from the Library palette's Standard tab and then use a little bit of script to make it open a link in a browser window.
If look closely at Chris' sample, you'll see that when the button is pressed, it first verifies that an item has been picked from the drop down list and, if so, executes the following script:
app.launchURL(DropDownList1.rawValue, true);
Or, in a more generic form:
app.launchURL("
Link" [,
true]);
The app.launchURL method will open the link specified in
Link using the system's default browser and, if
true is specified (it's in square brackets because that parameter is optional), will force the link to open in a
new browser window (this is good for the situation where you don't want your customer to "lose" your form while they investigate the link you're referring them to).
To create a button which, when clicked, opens a link to the download site for the Adobe Reader in a new browser window, you would first drag and drop a button object from the Library's Standard tab onto the form. Then, using the Script Editor, you would specify the following JavaScript for the button's Click event:
app.launchURL("http://www.adobe.com/products/acrobat/readstep2.html", true);
If you use "link buttons" often, you could specify the JavaScript like this:
app.launchURL("http://www.", true);
And then, having already clicked on the Library palette's Custom tab, drag and drop that "link button" object onto the list of custom objects, creating a new object in the Library for your "link button". Afterwards, you can use the Custom tab to create a new link button onto other forms and simply complete the link address for each case.
Stefan
Adobe Systems