The user needs to enter data into the system
An input field is pre-filled with example text or a question that prompts the user with what to do or type.
The Input Prompt pattern is most successfully used with dropdown lists and text fields. As dropdown lists have a fixed set of choices, words like Select or Choose are used for prompts. For text fields, the prompting string often begins with a call to action: Enter, Type, Search. End the string with the noun the input is describing, for instance Enter city or Enter an address.
Text fields use the Input Prompt pattern combined with scripting to remove the prompt text from a field, when the user’s focus is set. Once the user enters the input field to type in content, the prompting text is removed and replaced with nothing so that the input field is free for the user to fill out.
When a user fills out a form it is most often with the purpose of filling it out as quickly as possible to get on with the service offered. This is why the user often just scans through form fields and labels without giving the labels much of a glance. By using input prompts, immediate attention is drawn to what the user needs to fill in. The user can’t miss it. Although you must beware of removing labels entirely, as the input prompt is removed once focus has been set to the text field.
Input prompt is often used for small forms that are key to the core functionality of a site as inserting the label inside the text field itself helps save space. For more elaborate forms, there is often more than enough room available to explain each input field.
One note of usage instead of labels. From UX point of view â€“ while this might look like a cool way to provide labels, this works only for small forms and should really be used only when necessary. Because labels inside fields disappear when you enter data, there is a danger of loosing context – there is no label to refer to if you’re unsure what the question was.
It works great for small forms, like a search box though.
I would like to also highlight that there may be usability problems involved into this pattern.
Whenever you type you must make sure that label inside is cleared. Otherwise your searched text would something like combination of what you look for and the label like “searchAmsterdam”