Invention: Sequential Text Boxes

Windows does it when you’re entering your serial key right after installation, and online forms do it when you’re typing in your phone number, social security number, or zip code. Sometimes, online forms have multiple text boxes for numbers with multiple sets. Instead of the user manually tabbing or clicking over to the next text box to type, the developer can code up some “auto tabbing” JavaScript to move to the next text box automatically as you type in the numbers (Windows and Microsoft Office do this). Unfortunately, no one actually warns you when the form does this on its own. Many times users fill in the first set of numbers and hit the tab button manually only to find out the form tabbed over an extra time, resulting in them having to go back to the previous text box or accidentally filling in the wrong one.

If for some reason you absolutely MUST force users to enter sets of numbers that you are absolutely sure you know the formating of (like social security numbers, long serial keys to software that can’t be copy-pasted, or codes for the nukes) then go ahead and use one text field per set of numbers with auto tabbing in between. To let the user know that you have auto tabbing on, make the text boxes dashed in between sets of numbers by using simple css.

For the Default Dashed Text Box look (like above) insert the following into your css

/* CSS */
input {
border-bottom:1px solid #D4D0C8; /* needed for bug where buttom of last dashed line sticks out */
}
 
#left {
border-right: 1px dashed #929292;
width: 26px;
padding-left: 5px;
}
 
#mid {
border-right: 1px dashed #929292;
border-left: 1px dashed #929292;
width: 20px;
padding-left: 5px;
}
 
#right {
border-left: 1px dashed #929292;
width: 33px;
padding-left: 5px;
}

and match up the (left-mid-right) input text boxes with their CSS selectors (#left, #mid, #right) like this…

<input id="left" type="text" /> -
<input id="mid" type="text" /> -
<input id="right" type="text" />

If you want the border of the text boxes black like this…

then change the “input” selector in your CSS to this…

input {
border: 1px solid black;
background-color: #f8f8f8;
}

Backstory:
I came up with this solution a year ago while typing in my phone number somewhere but haven’t actually implemented it into any of my sites. I’ve never had to collect phone numbers before and even if I did I probably would have used one continuous text box for it, that way people can leave international phone numbers and numbers with lengthy extensions. But it would work great for social security numbers, exact length pin numbers, serial keys, etc…

75 Comments

  1. Mark says:

    Yes! Definitely this! Excellent solution.

  2. zimbatm says:

    Wouldn’t it make more sense to have a single input filed, but that enforces a particular structure inside of it ?

    In that case, the programmer is interested in having the full SSN, but also to be sure that it’s formatted correctly. It’s a bit like the date input fields, you could have separate year, month, day, but at the end you’re interested in the full date.

    • Yes, I think that’s what’s replaced multiple input fields, I’ve seen it and it’s a much more elegant solution. As you type in a single text box the “/” and “-” appear automatically to separate the numbers.

    • zimbatm says:

      Yes, I wonder if there is a good solution for structured text like that. It looks a bit like a placeholder with unmovable bits.

  3. “Thanks again for the blog post.Thanks Again. Want more.”

  4. acesse says:

    Im thankful for the article.Much thanks again. Awesome.

  5. Looking forward to reading more. Great blog.Really thank you! Will read on…

  6. Awesome blog post. Will read on…

  7. firmware says:

    Im thankful for the blog post.Really looking forward to read more. Will read on…

  8. Wow, great blog post.Thanks Again. Much obliged.

  9. I really enjoy the post. Want more.

  10. Great post.Much thanks again. Great.

  11. A big thank you for your post.Really thank you!

  12. Thanks for sharing, this is a fantastic blog article.Really thank you! Fantastic.

  13. Major thanks for the blog post.Really thank you! Want more.

  14. Say, you got a nice post.Really looking forward to read more. Want more.

  15. I loved your article post.Really looking forward to read more. Much obliged.

  16. I really liked your blog.Really thank you! Great.

  17. Hey, thanks for the blog. Will read on…

  18. I think this is a real great post.Really thank you! Want more.

  19. Very good blog post.Really thank you! Keep writing.

  20. A round of applause for your article post.Thanks Again. Really Cool.

  21. swan dildo says:

    Looking forward to reading more. Great article.Thanks Again. Much obliged.

  22. I am so grateful for your article.Really looking forward to read more. Keep writing.

  23. A round of applause for your blog article.Really looking forward to read more. Cool.

  24. Wow, great post.Thanks Again. Great.

  25. Wow, great post.Really thank you! Great.

  26. A round of applause for your article.Really looking forward to read more. Will read on…

  27. Say, you got a nice blog.Really looking forward to read more.

  28. I cannot thank you enough for the article post.Really thank you! Great.

  29. Im grateful for the article post.Thanks Again. Really Cool.

  30. I am so grateful for your blog post.Really looking forward to read more. Will read on…

  31. Im obliged for the blog article.Thanks Again. Awesome.

  32. Im grateful for the blog. Really Great.

  33. A round of applause for your blog.Really looking forward to read more. Keep writing.

  34. packraft says:

    I value the article.Really thank you! Awesome.

  35. Wow, great blog. Really Great.

  36. “I simply couldn’t depart your website prior to suggesting that I extremely loved the standard information a person supply in your visitors? Is going to be again ceaselessly in order to check out new posts”

  37. Thanks so much for the blog article.Thanks Again.

  38. Thanks a lot for the post.Really thank you! Want more.

  39. Awesome post.Much thanks again. Much obliged.

  40. Looking forward to reading more. Great blog.Much thanks again. Much obliged.

  41. wow, awesome blog article.Thanks Again. Keep writing.

  42. Thanks a lot for the blog post. Really Cool.

  43. I truly appreciate this blog article.Really looking forward to read more. Really Great.

  44. Thank you for your blog.Really looking forward to read more. Want more.

  45. Looking forward to reading more. Great blog post.Much thanks again. Want more.

  46. Thanks so much for the article.Much thanks again. Awesome.

  47. Appreciate you sharing, great blog.Thanks Again. Much obliged.

  48. I loved your blog article.Really looking forward to read more. Fantastic.

  49. Looking forward to reading more. Great blog post.Really looking forward to read more. Keep writing.

  50. Looking forward to reading more. Great article post.Really looking forward to read more. Will read on…

Leave a Reply

Your email address will not be published. Required fields are marked *