The login form allways write the field-title in the value for login "name" field

The user wants to begin writing the username and connot, because, he first has to remove the writen "Username" (or the in german translated "Benutzername")

How to reproduce:
* Go to login form, there yet something is written in the user name field

Aspected behaviour:
* The "Username" should only a suggestion/help
* If the user clicks in the "name" field, the field should be empty for writing their own user name into.

How to fix:
modules/user/user.module line 690
For field "name" change the:
" '#title' => t('Username'),"
to a
" '#attributes' => array('placeholder' => t('Username')),"

CommentFileSizeAuthor
#1 loginform-placeholder.2160379.patch437 bytesneffets

Comments

neffets’s picture

StatusFileSize
new437 bytes
neffets’s picture

Issue summary: View changes
mdupont’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: -user login, -placeholder

Stock Drupal 6 doesn't put the field title ("Username") inside the text field (it's displayed on top of the field instead), so the issue is likely to come from a custom module or theme that modified the way the field title was rendered in HTML.

Closing the issue since it's not in Drupal 6 core.