try the following in Change event of the Dropdownvar curSelection = xfa.event.change;if (Right(curSelection, 2) == "TW") { //use your code to hide and visibility}function Right(str, n){ if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return S...