David brings up a good point. If you truly want to restrict then the previous methods will work, but if what you are really wanting is to transform the input after submission then you should leave it open and transform on the back end or the actual output.
RL ----- Original Message ----- From: "David Ennis" <[email protected]> To: [email protected] Sent: Friday, May 8, 2009 9:23:10 AM GMT -05:00 US/Canada Eastern Subject: Re: [AFFUG Discuss] Forcing TextInput to be all-caps... Not sure of the whole situation, but I'd suggest not restricting the user to uppercase. Instead let them type whatever case they want and transform the data when you save it. Don't make the user think. ;^) On May 8, 2009, at 9:17 AM, Laurence MacNeill wrote: > At 08:39 AM 5/8/2009, you wrote: >> The restrict property is a little more complicated since you need >> to specify what characters the user is allowed to type in an input >> text field. You can allow specific letters, numbers, or ranges of >> letters, numbers, and characters. The following code allows the >> user to enter only uppercase letters (and not numbers or special >> characters) in the text field: >> >> myTextBox.restrict = "A-Z"; > Ok great. Thanks. > > And, I'm assuming, if I wanted upper-case letters and numbers in > there it'd be something like: > <mx:TextInput id="myTextInput" restrict="A-Z,0-9"/> > > Thanks, > > Laurence MacNeill > Mableton, Georgia, USA > > > > ------------------------------------------------------------- > To unsubscribe from this list, simply email the list with > unsubscribe in the subject line > > For more info, see http://www.affug.com > Archive @ http://www.mail-archive.com/discussion%40affug.com/ > List hosted by http://www.fusionlink.com > ------------------------------------------------------------- > > ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, simply email the list with unsubscribe in the subject line For more info, see http://www.affug.com Archive @ http://www.mail-archive.com/discussion%40affug.com/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
