开发者

Flex: Restrict data input

开发者 https://www.devze.com 2023-01-14 19:26 出处:网络
I have a TextField as: <s:TextInput restrict=\"A-Z0-9_\" maxChars=\"30\"/> And I am restricting the input to:

I have a TextField as:

 <s:TextInput restrict="A-Z0-9_" maxChars="30"/>

And I am restricting the input to:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消