I have different posts about how to populate a drop-down list from another drop down, and how to populate a text from a drop down list. But my situation is different. I have two drop down lists and a text box. What I need is Dropdown2 to populate from Dropdown1 and upon the selection of the new values in Dropdown2, populate a value in Textbox1. I have the drop boxes working but I don't know how to populate the text box from the dynamically populated drop down. Make Sense? ;-)
I have an exit script in dropdown1 for dropdown2 and just need another exit script from dropdown2 for textbox1. My code is posted below for the drop boxes. Can anyone help?
Dropdown2.rawValue = xfa.event.newText;
if (this.rawValue == 0) { //BET Surface Area
Dropdown2.clearItems();
Dropdown2.addItem("Multi-point N2", "0");
Dropdown2.addItem("Single-point N2", "1");
Dropdown2.addItem("Multi-point Kr", "2");
Dropdown2.addItem("Single-point Kr", "3");
Dropdown2.addItem("Single-point Flowsorb", "4");
} else if (this.rawValue == 1){ //Chemisorption
Dropdown2.clearItems();
Dropdown2.addItem("Static Volumetric Chemi", "0");
Dropdown2.addItem("Dynamic Pulse Chemi", "1");
Dropdown2.addItem("Pulse Chemi of Liquid Vapors", "2");
Dropdown2.addItem("TPD", "3");
Dropdown2.addItem("TPR", "4");
Dropdown2.addItem("TPO", "5");
Dropdown2.addItem("Mass Spec Analysis", "6");
Dropdown2.addItem("First Order Kinetics", "7");
} else if (this.rawValue == 2){ //Density
Dropdown2.clearItems();
Dropdown2.addItem("Skeletal Density", "0");
Dropdown2.addItem("Skeletal Density with Temp Control", "1");
Dropdown2.addItem("Mercury Density", "2");
Dropdown2.addItem("Envelope Density", "3");
Dropdown2.addItem("T.A.P. Density", "4");
Dropdown2.addItem("Pore Volume from Density", "5");
Dropdown2.addItem("USP <616> Bulk/Tap Density", "6");
} else if (this.rawValue == 3){ //Particle Size
Dropdown2.clearItems();
Dropdown2.addItem("Light Scattering - Water Dispersion", "0");
Dropdown2.addItem("Light Scattering - Nonaqueous Dispersion", "1");
Dropdown2.addItem("Light scattering - Water dispersion", "2");
Dropdown2.addItem("Sedimentation", "3");
Dropdown2.addItem("Elzone", "4");
Dropdown2.addItem("Elzone - Size Plus Concentration", "5");
Dropdown2.addItem("Elzone - Emission Filters", "6");
Dropdown2.addItem("Dynamic Image Analysis", "7");
Dropdown2.addItem("Sieve's", "8");
Dropdown2.addItem("Nanosize Calculation", "9");
} else if (this.rawValue == 4){ //Pore Size by Gas Adsorption
Dropdown2.clearItems();
Dropdown2.addItem("Adsorption Isotherm", "0");
Dropdown2.addItem("Desorption Isotherm", "1");
Dropdown2.addItem("Adsorption/Desorption Isotherm", "2");
Dropdown2.addItem("Micropore Adsorption Isotherm", "3");
Dropdown2.addItem("Isoteric Heat of Adsorption", "4");
} else if (this.rawValue == 5){ //Pore Size by Mercury Intrusion
Dropdown2.clearItems();
Dropdown2.addItem("Intrusion Analysis", "0");
Dropdown2.addItem("Intrusion/Extrusion Analysis", "1");
Dropdown2.addItem("Hi-Resolution Macropore Analysis", "2");
Dropdown2.addItem("Macropore plus Mesopore Analysis", "3");
Dropdown2.addItem("Special Data Reduction Software", "4");
} else if (this.rawValue == 6){ //Other
Dropdown2.clearItems();
Dropdown2.addItem("Microscopy Analysis", "0");
Dropdown2.addItem("Microscope Pictures", "1");
Dropdown2.addItem("H2 Isotherms", "2");
Dropdown2.addItem("High Pressure Isotherms", "3");
Dropdown2.addItem("Non-Std Lab Analysis", "4");
Dropdown2.addItem("Method Development", "5");
Dropdown2.addItem("Consulting Services", "6");
Dropdown2.addItem("Zeta Potential", "7");
Dropdown2.addItem("Viscosity", "8");
Dropdown2.addItem("pH", "9");
Dropdown2.addItem("Percent Moisture", "10");
Dropdown2.addItem("Specific Gravity", "11");
Dropdown2.addItem("Total Dissolved Solids", "12");
Dropdown2.addItem("Total Suspended Solids", "13");
Dropdown2.addItem("Calibration of Hg Pens", "14");
Dropdown2.addItem("Calibration of TriStar Tubes", "15");
}else if (t