Many designers like to assign form field labels using the value attribute of the form field itself rather than a label or sometimes both, if they're mixing iconography with textual labels or providing prompts and data validation rule tips.
How do you implement form fields where it's either a requirement to have labels/prompts inside the form field or it's necessary due to space, style guide etc.
I find it annoying that I have to manually clear a field before I can enter text into it ... but if it's the only meaningful label then I kinda need it.
I'll always try to use unobtrusive JavaScript to set the value of the form field on page load and then bind a focus and blur event to clear the field for me and reinstate the default text if I leave the field blank.
I'll always also have an additional label even if the visual design doesn't include a visible one for accessibility.
However there are other issues around how does this field behave with just CSS disabled, just JS disable, neither CSS or JS, why do we design fields like this, is it useful/helpful or annoying and inconvenient? Has anyone done any research on this?
