Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Labels/Titles API > Methods

Labels/Titles API: getPlaceholder

Scroll Prev Next More

 

Gets the field placeholder.

Syntax

Labels::getPlaceholder($table, $field, $language)

Arguments

$table

the table name.

$field

the field name.

$language

the language of the placeholder. If the $language parameter is not specified, the current language is used.

Return value

Returns the field placeholder. Placeholder can be set in the Edit As settings or in the Label Editor on the Miscellaneous settings screen.

Example

Gets the "descr" field placeholder of the "carscars" table.

 

Labels::getPlaceholder("carscars", "descr");

See also:

Labels/Titles API: setPlaceholder()

Miscellaneous settings: Label Editor

"Edit As" settings: Text Field

Page Designer: Working with page elements

About Labels/Titles API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software