Postel's Law

Accept what people type, in any form

Accept data in the form people naturally type it. Clean it up in the app, and show an error only when the app cannot.

This guideline comes from Postel's Law. Read more about it on lawsofux.com.

In plain words: accept what people give you in any sensible form, and tidy it up yourself before you pass it on. A good receptionist takes your phone number however you say it, and writes it down neatly.

The scenario: the phone-number field at checkout on Fernvale Goods. Both versions below work — try them. Each starts with a number written the way many people write it: “+30 210 555 0199”. Click outside the field, or press the button, and see how each version reacts.

Video, about 15 seconds, no sound: Postel's Law, before and after. Before: A customer types their phone number. The form rejects it. After: Same number. The form accepts it and tidies it up itself. Watch first: the problem, then the fix. Then try both versions yourself below.

Try it yourself

Switch between Before and After, then try each version.

What's wrong here? The form wants exactly 10 digits: no spaces, no dashes, no “+30”. A customer who types the number as it appears on their own business card gets an error in red capital letters. The computer could clean up the number itself. Instead, it makes the customer do it. Click in the field and then outside it, or press “Continue to payment”.
fernvalegoods.com/checkout/delivery

Delivery details

Step 2 of 3 — we'll text you when the courier is nearby.

Linen throw blanket × 1€64.00
Format: 10 digits, no spaces, no symbols, no country code.

Apply this rule to your app

Sales increaseSupport calls decrease

Accepting every format turns a failed checkout into a sale and saves a support call.

Does your app have this problem?

I can look at your app's screens and show you which fixes bring the most value.

Email me

Your progress

Got it? Tick it off. Your progress stays in this browser.