Flex: Restrict data input
I have a TextField as:
<s:TextInput restrict="A-Z0-9_" maxChars="30"/>
And I am restricting the input to:
- Capital letters
开发者_Go百科- Numbers
- _
- no spaces
- max chars 30
How can I restrict the input more to allow only letters at the begging and end?
The restrict-field validates immediately when the user types in something.
You need an RegExp-Validator to validate after the user wants to submit the data, so you can't use the restrict-field.
精彩评论