PDF doesn't calculate a value based on a drop down until another entry is made
I have a text box ("PKG_PRICE") sest to calculate a value based on a dropdown menu "PKG") (value is defined by OPTIONS>Export Value). The "PKG_PRICE" text box properly displays the value once a drop down ("PKG") selection is made. However, I have another calculation ("TOTALS") that should show totals based on a bunch of other values calculated throughout the form including the value from the "PKG_PRICE" text box. The problem is "Totals" doesn't calculate the value from the "PKG_PRICE" text box (based on the "PKG" dropdown selection) UNTIL another random selection is made somewhere else in the pdf. The "Totals" field is calculated with just the simple Calculate>Value is the Sum of... The only custom script I have is the PKG_PRICE which is defined with the script:
var dropdownField = this.getField("PACKAGE");
var textField = this.getField("PKGPRICE");
if (dropdownField.value != "") {
textField.value = dropdownField.value;
} else {
textField.value = "";
}
Have I missed a line of code that would cause it to not caluclate properly?
