I'd like to show the drop down item text instead of the value in another text field, e.g. STATE. Below is my base code but the STATE field is rendering the value instead of the text. The code must work in Acrobat ver 6 and 7.
I tried .newText, nodeList.item, .item and rawValue but none of these are working. Does anyone know how to show the text and/or where I can find a list of all possible options, e.g. properties?
Thank you,
Valerie
// WORKING VERSION W/OUT ALERTS
// Concatenate Investigator Postal Address, i.e. City, State and Zip
// This shows the state w/ the value not the text
// Get field references
var xCITY = getField("Investigator.CITY");
var xSTATE = getField("Investigator.STATEID.STATELIST");
var xZIP = getField("Investigator.ZIP");
var xPostalAdd = getField("Investigator.PostalAdd");
if ((xCITY.value == "") & (xSTATE.value == "") & (xZIP.value == ""))
{
// Set this field value
xPostalAdd = "";
} else {
// Set this field value by concatenating the other fields
xPostalAdd.value = xCITY.value + ", " + xSTATE.value + " " + xZIP.value;
}
George