I have an edit field and I want to use it for numeric value.
Can anyone tell me how to enter only numeric v开发者_开发技巧alue in edit field, I want to use it for phone number. I used BasicEditField.numeric
but didn't work.
I also want to validate it in proper format....ddd-ddd-dddd.
Have you tried the BasicEditField
with FILTER_PHONE
? Example can be found here.
I've never seen anything you could use for validation you need in the BB API. RegExps are not supported in BB API, so you'll most likely have to write your own validator.
精彩评论