A "No default value" date textfield widget has a HTML5 placeholder attribute that looks like a real date value. This is confusing in at least two ways: (1) Anyone not realizing that it's placeholder text might skip past the field thinking it's already filled in, or (2) someone might spend 15 desperate minutes anxiously trying to figure out how to clear the field so as to leave it unset.

A gray default color would help, but I don't think there's a non-proprietary way to set that yet. I'd personally prefer to leave off the placeholder attribute entirely, or at least tweak the attribute text to make it clearer that it's an example.

Comments

jamescl’s picture

Agreed, and largely redundant with format help text underneath. It also presumes that todays date is an appropriate suggestion. Option to turn this off would be ideal.

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I have no idea what you're talking about.

les lim’s picture

Status: Postponed (maintainer needs more info) » Active

Looks like the 'placeholder' input element attribute got added in with this patch about Date Repeat UI changes:

http://drupal.org/node/1354606#comment-5343334

Here's the commit:

http://drupalcode.org/project/date.git/commitdiff/e7f1ffb3622ce2c90bdfaa...

The placeholder was subsequently tweaked in a followup:

http://drupalcode.org/project/date.git/commitdiff/cdb59cf5e8fdc5d4fd99d6...

karens’s picture

Status: Active » Fixed

That got added by the Acquia UX improvements. We didn't really talk about that change and I didn't notice it. I agree it is confusing and should not be the default behavior.

http://drupalcode.org/project/date.git/commit/1b604a7

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.