Re: [flexcoders] number and string validator
Hi Josh. Josh McDonald wrote: Just use a number validator and check it's 999 and 1? That's great! Thanks. minLength=1000 maxLength= Kr. Luke. On Mon, Apr 28, 2008 at 3:54 PM, Luke Vanderfluit [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. I have a postcode field that I want to test on digits as well as length. So the field must have digits and the field should be of length 4. I thought I would do 2 validators: mx:StringValidator id=postcodeStringValidator source={organisationPostcode} property=text minLength=4 maxLength=4 tooShortError=Please enter a 4-digit postcode/ mx:NumberValidator id=postcodeNumberValidator source={organisationPostcode} property=text/ However only the StringValidator works here... How would I use validators to check both lenght and whether the pc is 4 digits? Kr. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au http://e3Learning.com.au 08 8221 6422 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422
Re: [flexcoders] number and string validator
Hi, You can also restrict the type of characters entered by the user with the restrict property. mx:TextInput restrict=0-9 .../ Luke Vanderfluit wrote: Hi Josh. Josh McDonald wrote: Just use a number validator and check it's 999 and 1? That's great! Thanks. minLength=1000 maxLength= cheers - shaun
[flexcoders] number and string validator
Hi. I have a postcode field that I want to test on digits as well as length. So the field must have digits and the field should be of length 4. I thought I would do 2 validators: mx:StringValidator id=postcodeStringValidator source={organisationPostcode} property=text minLength=4 maxLength=4 tooShortError=Please enter a 4-digit postcode/ mx:NumberValidator id=postcodeNumberValidator source={organisationPostcode} property=text/ However only the StringValidator works here... How would I use validators to check both lenght and whether the pc is 4 digits? Kr. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422
Re: [flexcoders] number and string validator
Just use a number validator and check it's 999 and 1? On Mon, Apr 28, 2008 at 3:54 PM, Luke Vanderfluit [EMAIL PROTECTED] wrote: Hi. I have a postcode field that I want to test on digits as well as length. So the field must have digits and the field should be of length 4. I thought I would do 2 validators: mx:StringValidator id=postcodeStringValidator source={organisationPostcode} property=text minLength=4 maxLength=4 tooShortError=Please enter a 4-digit postcode/ mx:NumberValidator id=postcodeNumberValidator source={organisationPostcode} property=text/ However only the StringValidator works here... How would I use validators to check both lenght and whether the pc is 4 digits? Kr. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]