Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How can I generate different images for each choice made in a drop down?

$
0
0


Hello everyone,

     I am new to livecycle and scripting and I have a question. I have figured out how to use a switch statement to generate choices in a drop drown from the choice in another fairly quickly. However, I've tried searching and bought the book by J.P Terry to self teach. I may have missed it, but I want to be able to click on one of the choices that have been generated and an image of it displayed below the drop down box. Here is an example of what I'm talking about:

 

For Example: DropDownList1 is scripted so that if I choose either value 0 or 1, the three items are then listed in DropDownList2. I want to be able a to choose any of the six items, when the choice is available in DropDownList2, and an image for each item will be displayed when I click on it. I believe this is possible but I am an amateur and I need the guidance of an experienced user. Thank you for your help.

 

DropDownList2.clearItems();

switch(this.rawValue){

    case "0":

        DropDownList2.addItem("Item One"

        DropDownList2.addItem("Item Two");

        DropDownList2.addItem("Item Three");

        break;

    case "1":

        DropDownList2.addItem("Item Four"

        DropDownList2.addItem("Item Five");

        DropDownList2.addItem("Item Six");

        break;

}
























































































































































































Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>