Use Numeric Entry Fields for Precise Integers
If you’re trying to get an integer (a whole number) from a user—for example the number of widgets they want to order or the number of days an event runs for—it makes no sense to offer them a free text input field where they can enter “a few” or an emoji. A numeric entry field in HTML is:
<input type="number">
This will display slightly differently on different devices—and that’s the whole point. By adapting to the control system of the client’s device, the user gets a simpler entry and makes fewer mistakes. You also get fewer emojis in your database.
Users abandon forms because:
- they’re too long,
- they ask for too many details, or
- because it’s difficult to enter information into the form.
Therefore, a huge benefit here is that this will improve your form conversion rates by giving users on both desktop and...