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

Dynamic Dropdown Help

$
0
0

I've watched countless videos and read many posts on how to create dropdowns but the script I'm writing is still not working. I'm trying to create something pretty basic. I have two dropdowns on two different pages. The value of the dropdown on the first page will decide what shows up on the dropdown on the other page. I've specified item values for both lists. Any help would be greatly appreciated. Thanks in advance. So far, the code i've created is this:

 

 

 

switch(this.rawValue){

case "1":

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem("Primary-insured
or staff 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("70%-working couple");

   break;

 

 

case "2":

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem ("Primary-insured or staff 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("70%-working couple");

    break;

 

case "3":

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied 3-6 months/year");

ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied more than 6 months/year");

    break;

 

case "4":

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied 3-6 months/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied more than 6 months/year");

 

    break;

 

 

case "5":

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied 3-6 months/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied more than 6 months/year");

 

    break;

 

 

case "6"

ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied 3-6 months/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied more than 6 months/year");

     break;

 

case "7"

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied 3-6 months/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
("Unoccupied more than 6 months/year");

 

   break;

 

 

default:

    OccupancyDropDown.addItem("Please choose
Occupancy");

    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>