Thanks all for your suggestions & solutions.I solved the problem using regular expression validator.
On Sat, Sep 10, 2011 at 6:19 PM, Rashmi Mirajkar <[email protected]>wrote: > Hi > You need > to use max chars property as 5 and 0-9 in restrict property then i think > solves your problem > On 08-Sep-2011 5:39 PM, "Amruta Kulkarni" <[email protected]> > wrote: > > Hi All, > > > > I am working on a flex application which has requirement to restrict user > to > > enter the numbers with 5 decimal places only.I tried the 'restrict' > property > > of TextInput control.Here is the code snippet that I tried: > > > > > > <mx:TextInput id="txtValue" restrict="[0-9]*\.?[0-9]{0,5}" /> > > > > but this is not working.Can anyone help me out on this?Its very urgent. > > > > > > > > Thanks > > -Amruta Kulkarni > > > > -- > > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

