I have a field on my registration form for the user to enter their phone number. The field is set to number as I want the user to have the numerical input appear on their phone when they select this field.
Phone numbers in the UK begin with 0, so when the user enters a number (example 07112 123 456) the record in the DB is stored as 0.
Using data binding to the input field, I have tried to convert to text in UI logic before it is sent to the DB, but the number is already stored as 0 in page data at this point.
Is there a way to format this field so that it provides the user with the numerical input on their phone when selected, but saves a string with all digits from the phone number?