The right version have to be:if (xfa.eventnewText == "Other") { //OR app.alert("You must fill out field B!"); //OR xfa.host.messageBox("You must fill out field B!", PLEASE READ", 1,0); xfa.host.messageBox("You must fill out field B!"); TextField3.mandatory="error";}else{ Tex...