Hi,please use this script in the exit-event of your textfield:var nValueLength = this.rawValue;if(nValueLength.length < 5){ xfa.host.messageBox("Please enter 5 digits.", "User Information", 1,0); this.rawValue = null;}Please set the following setting in object | field | limit length max ch...