View Full Version : stop user input in number field after 6 decimal places

29 Oct 2014, 2:38 PM
I have tried using "decimalPrecision" but it would allow the user to put in more than 6 decimal places. Moreover, if the user enters "0.9999999" with 7 9s. it would round up to 1. I have used Ext.util.Format.number too. Any idea??

Thanks for the help.

Mark Wagoner
30 Oct 2014, 4:08 AM
Try adding a validator to the field which uses a regex expression.