Populating text from dropdown menu
I have a dropdown menu, that when an item is selected a description appears in a text box from the selection in the dropdown list. This is the script I already have, but it only shows for the first item in the dropdown list. I need help getting the text field to show from every selection in my dropdown list.
var v = event.value;
var targetValue = "";
if (v == "Appliance Repair")'
{
targetValue = "Text";
}
else if (v == "Carpet Repair")
{
targetValue = "Text2";
}
this.getField("Description").value = targetValue;
