Purpose of Text Box type = "phone"?

When I set type = “phone” for a Text Box, what’s supposed to be the effect? I can still type in letters and incorrectly (US-format) formatted phone numbers. Also, the online help only references type = “number”, and the definition of type is (IMHO) rather ambiguous as to its functionality.

It’s mostly a helper for mobile devices (they’ll show a phone keypad with numbers and # and * when you select that textbox, they might also let you select a number from your contacts). It doesn’t make much of a difference on the desktop. This is also true of the “email” type as well.

“number” is slightly different, in that the text property will actually return a numerical type (float or int). This allows you to data-bind directly to numerical expressions (eg a numerical column in a data table).

Hope that helps!

2 Likes

Thanks for the clarification Meredydd!

1 Like

NP; I’ve updated the docs too :slight_smile: