Numeric keyboard for number fields at checkout
Phone, card and postal code fields should open a number pad on phones. Set the right input mode on each field.
1 min read
Area
CRO & UX
Severity
Medium
Fix effort
Small
Stores failing
Not enough data
Fields that expect digits, such as phone, card number and postal code, should open a number pad on a phone. The right input type or inputmode attribute does it. This check looks at numeric fields in checkout.
Why it matters
Switching the keyboard from letters to numbers is slow and causes typos, which cause declined payments and failed deliveries. The fix is a single attribute per field.
What the audit looks at
The audit reads checkout fields that expect numbers and checks their input type or inputmode.
What usually causes it
- Fields built as plain text inputs
- A custom checkout that ignores input modes
- Fields that accept letters and digits and so use text
- Third-party payment fields outside your control
How to fix it
Make number fields open the number keypad on phones. The effort is small, usually a setting or a paste and under 30 minutes.
- Set inputmode="numeric" (or type="tel") on phone, postcode and card fields.
On Shopify
- Shopify's checkout does this itself. If yours does not, a custom checkout field is the cause; ask its vendor.
On WooCommerce
- Add inputmode="numeric" to phone and postcode fields with the woocommerce_checkout_fields filter in a child theme.
How to check it yourself
- Open checkout on a phone and tap the phone and postal code fields.
- See whether a number pad appears.
- Look at the field attributes for inputmode="numeric" or type="tel".
Frequently asked questions
What about postal codes with letters?
Where codes include letters, keep the text keyboard.
Does the payment provider handle card fields?
Hosted card fields are usually set correctly by the provider.
Related checks
Check your own store
See whether your store passes this check
Paste your store URL. The audit loads your pages in a real browser and shows the result for this check with the evidence behind it.