UK Phone formating and validiation
Does anyone use form builder in the UK.
When I enter a UK number it is formatted like this 0 (139) 234-1888
It should be 01392 431 888. Obviously it is not passing validiation either.
I had a look at the SpryValidationTextField.js
'phone_number': {
formats: {
//US phone number; 10 digits
'phone_us': {
pattern:'(000) 000-0000'
},
'phone_custom': {}
}
},
I have changed to
'phone_number': {
formats: {
//US phone number; 10 digits
'phone_us': {
pattern:'(000) 000-0000'
},
'phone_custom': {
pattern:'00000 000000'
}
}
},
But no luck, also in the UK some numbers are 10 and some 11.
Please can someone tell me how to set this up.
Many thanks