3 Replies Latest reply on Oct 5, 2011 3:35 PM by Flex harUI

    Using the restrict property for a textfield - \u is not working?

    BIOSMonkey Level 1

      I am trying to set a numeric code range (versus entering string characters) for the restrict property of a text field.  The documentation states that this can be achieved via the unicode escape sequence, such as "\u0030-\u0039".  But I cannot get this to work. 


      Even trying single character such as


      <mx:TextInput id="tt" width="100%" restrict="\u0030"/>


      is failing. As I understand it, this should only allow the number 0 to be entered, but it does not work.  Instead, I am able to enter 0, 3, and u, so the \u seems to be ignored.


      Am I missing something simple?