Issue Feature Closed

#33235Placeholder for TCEForm fields text/input

Tobias Liebig 01/16/12, 21:38 updated 10/02/18, 12:40

Description

We need the possibility to display a placeholder/ghosttext in TCEForm fields to guide the user about default values. The Placeholder will disappear as soon as the user enters a value.
The Placeholder should be configurable by TCA config.

Allowed syntax:

  • "Foobar" => will display “Foobar” as placeholder
  • "LLL:EXT:foobar/Resources/Private/Languages/locallang.xml" => support “LLL:” syntax
  • "__row|fieldName" => will display the value of /fieldName/ as placeholder
  • "__row|relationField|fieldName" => If “relationField” is configured as group/db, display the value of “fieldName” of the foreign record as placeholder.

http://etobi.de/screens/placholder-20120116-213633.png

This feature was part of the BLE project.

Reviews 3