Tag Info

New answers tagged

1

There are simply too many rules to validate a phone number input by a user. 1. Phone numbers are ultimately just a string of numeric digits Here is one example showing how to convert anything a user inputs as a list of numeric digits. You would want to use the raw input from the user everywhere in the UI and then also store the converted string of ...


0

Beside adding dashes, you will need to deal with the position of the cursor, especially in case of deletion. This AMD module does exactly that: https://github.com/whenyoubelieve2014/us-telephone-input


0

Re: other options & considerations... For dates like airline or hotel reservations (usually later in the current year) I personally prefer the simultaneous ability to enter text or choose from a pop-up calendar. For a web-app there are jQuery plugins that can accomplish this pretty nicely, or just use the native datePicker control, which people ...


4

This is very straightforward: you have to use the standard date picker control for each platform as outlined in the appropriate design guide. Here's Android class reference, iOS class reference, and Windows Phone class reference. If you're working on a web app, it's still better to use native date pickers to minimize user confusion and provide a consistent ...


1

During my work, I found that most people (including me) like single fields together with a format helper label (_____ DD/MM/YYYY) best. It is easy and fast to type and everyone should get the formatting hint. Plus, it's easy to evaluate and work with afterwards in your program. Bonus: Most mobile devices have the common separators (/,.) present on the ...


1

General rule: Input on the left, output on the right. People read from left to right (excluding a few cultures). This means they will need to see the input, before they progress onto the results. Therefore the form needs to be on the left-hand side, with the results appearing on the right-hand side. Example: FreshDesk help site. If you click the Support ...



Top 50 recent answers are included