form1.MainSubform.DebitDescripSubform.Table1.Section1.Row1.ItemNum::change - (JavaScript, client) var sNewSel = this.boundItem(xfa.event.newText); var bEnableTextField = true; switch (sNewSel) { case "1": // Case 1 Corrections.CorrectionLang = "Correction1 Text"; Corrections.CorrectionVal = "Critical"; break; case "2": // Case 2 Corrections.CorrectionLang = "Correction 2 Text"; Corrections.CorrectionVal = "Non-Critical"; break; default: // unknown value -- do nothing bEnableTextField = false; break; } if (bEnableTextField) { Corrections.CorrectionLang.access = "open"; // enable field Corrections.CorrectionLang.caption.font.fill.color.value = "0,0,0"; // set caption to black }