Please enable JavaScript to view this site.

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

Labels/Titles API: setPlaceholder

Scroll Prev Next More

 

Sets the field placeholder.

Syntax

Labels_setPlaceholder table, field, placeholder, language

Arguments

table

the table name.

field

the field name.

placeholder

the field placeholder.

language

the language of the placeholder. Specify an empty string "" for the language parameter to use the current language.

Return value

No return value.

Example

This example shows how to change the "descr" field placeholder of the "carscars" table to "Cars description".

 

Note: You can use this code in the AfterAppInit, AfterTableInit, BeforeProcess events.

 

Labels_setPlaceholder "carscars", "descr", "Cars description", "English"

See also:

Labels/Titles API: getPlaceholder()

Miscellaneous settings: Label Editor

"Edit As" settings: Text Field

Page Designer: Working with page elements

About Labels/Titles API