It shouldn't be... It looks like 'text1' is the variable name of your textField... You need to make sure that you are referencing it with the textField instance name rather than the variable name when using with the 'restrict'...
Please keep one question to one thread... Thank you...