Blank Placeholder

Is there a proper way to remove placeholders for form fields?

If I don’t assign any placeholder, it defaults to the field label from the model.

Currently I use:


array('placeholder'=>' ')

so it uses a whitespace as placeholder, but it’s ugly.

If I use an empty string


array('placeholder'=>'')

it defaults to the field label. Same result for null


array('placeholder'=>null)

Is there a proper way to have a blank placeholder?

This seems unusual behaviour. Are you using an extension?

Uh yes… it looks like a behavior introduced by the bootstrap extension (which inherits CActiveForm), so this should be fixed in the extension.