Nov 15, 2014, 6:33 AM
[CLOSED] Field value Numeric and allow 2 decimal
Hi
I set up a textfield to accept numeric value upto 2 decimal .
I set up a textfield to accept numeric value upto 2 decimal .
X.TextField()
.ID("txtTaxtotal")
.MaskRe(@"/[\d\.]/")
.Regex(@"/^\d+(\.\d{1,2})?$/")
with this setup textfield allow values more than 2 decimal and show a error validation message.how can i restrict input more the 2 decimal?
Last edited by Daniil; Nov 21, 2014 at 3:01 PM.
Reason: [CLOSED]