I have worked on a form that display images based on a dropdown list selection, I found the way to do this by using a the following code. // Code written by Tim Huff - Business Development Manager for Acrobat Oct 5 2007
// Populate a variable (sNewValue) with the Current Value of the Drop-down list using the newText event.
var sNewValue = $.boundItem(xfa.event.newText) TextField1.rawValue = sNewValue; // Fill the Text box with what you got
// Test your variable agaist the name of the Image Object. The names for each Image object is listed under the Image
if (sNewValue == "Acrobat Logo") then
//Let's hide the Acrobat Logo
AcrobatLogo.presence = "invisible";
AcrobatPro.presence = "visible";
AcrobatPro.presence = "visible";
endif
This worked fine but I then realized that I needed a multi step dropdown, I found this code here which uses a popup menu: http://www.acrobatusers.com/tutorials/popup-menus-acrobat Is there a way that I can use a popup menu like this in livecycle? This is using AcroForm ? The script would perform the following, User clicks on a item The popup window would display, user would then drill down tree steps lick in the example then the your would select his choice which would intern populate a field the choice image would then show up in the box.
The LiveCycle JavaScript model is a sub-model of the full Acrobat DOM. The "app" object is at the top of this model so everything in the "app" object works in a LiveCycle form.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script