Presenting the user on one device with a string of numbers, like so:
123 879 233 223 211 782 782
The numbers are displayed in groups of three, as shown above.
Now, the user needs to input these numbers on another device.
I want them to enter the numbers exactly as they see them.
Currently, I am using an
input type=number pattern='\d*'
I would prefer it to be (pseudo) :
type=text keyboard=numbers pattern='[0-9]{3}[0-9]{3} ...'
The number type is beneficial for mobile devices because it brings up the numeric keypad, which is more relevant and user-friendly in this scenario.
1) Is there a way to get a numbers keyboard for a standard text input field?
2) If not, can we format the numbers entered into the numeric input field?
3) If not, should we question the competence of those at W3C responsible for these standards? Instead of just allowing patterns in text inputs, they could have introduced a 'keyboard=numbers' attribute for better usability.