I have a requirement as,
validate TextInput for empid which is restrict numeric characters only ie (0-9) & user can enter multiple empid with comma sepration, max 10 charcters allowed for each empid.which means 10 digit for a single empid.
Imporant: user not allowed to enter inputs like "1,,,,,,,2 3,,,,, "
please anybody help me...
there are a couple of ways the come to mind to accomplish this. First you might try unsing a function that would
validate the string after a submit button is clicked. second you might want to read up on the mx:validator class.
let me know if your need futher help or if you have some source code please pot it up and i'll help you with it.
Thanks for your reply.
Yes there is option to validate that string after submit button click.
<mx:TextInput width="160" id="campaignId" restrict="0-9 ," />
width="160" id="campaignId" restrict="0-9 ," />
user allowed to enter numberic and comma.
my question is if the user has enter more than one comma like 1,,,,,,,,,, and with space ie 1,,, ,,, ,,,, means
how to resctrict this on button click event?