Ok, what am I doing wrong? I need to set a minimum amount of characters to be entered in a text field and I keep getting syntax errors when testing it...here is the code I am putting in on the mouseexit click.var minLength = 2 if(Username.rawValue.toString().length <minLength)then xfa.host.messageB...