Question on phone number input

Hello,

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?

Thank you

Hello @Luc_Zentar

Now you could use only a type text if you want to save a number with zero at the start, and I couldn’t offer you a workaround for type number.

We have a ticket to implement an input type tel, which gives you a possibility to do what you want, and we inform you when it will be released.

Regards, Dima.

Thank you