Thanks for your replay, but this isn't working on my form .. I added the code as follows on the form field: form1.#subform[0].SSNO::preSave - (JavaScript, client) form1.#subform[0].SSNO::preSave - (JavaScript, client) if ((SSNO.rawValue == null) || (SSNO.rawValue == "")) { xfa.event.canc...