Label Templates

Centrally manage HTML markup of page item labels using label templates.

Every item can have an optional label. You can control how these labels display using label templates. For example, you could create a label template called Required Field that references an image (such as an asterisk) to indicate to the user that the field is required.

Label templates also enable you to define a before-and-after text string that gets prepended and appended to the item.

Label Template Attributes

Learn about label template attributes.

To learn more about a specific attribute, see field-level Help.

Name

Template Name identifies the name of the template. Use the Translatable checkbox to indicate that the template contains text strings that require translation.Theme indicates the theme to which the template is a member.

Template Class identifies a specific use for the template. When you switch to a theme, all templates in one theme are mapped to corresponding templates in another theme. App Builderaccomplishes this template mapping through the assignment of a template class.

Definition

Definition attributes include:

Tip: For a list of supported substitution strings and to view examples, see field-level Help.

Error Display

Error Display attributes include:

Tip: For a list of supported substitution strings and to view examples, see field-level Help.

Field Container

Field Container attributes include:

Tip: For a list of supported substitution strings and to view examples, see field-level Help.

Substitution Strings

Note: Template directives are supported by specific attributes of label templates. See Using Template Directives.

Substitution strings are used within templates to reference component values. To view the most current list supported substitution strings for a given template, view the template and find the Substitution Strings report.

Tip: All template substitution strings must be in uppercase letters and begin and end with a number sign (#).

About Using #CURRENT_ITEM_HELP_TEXT# to Create Item Help

Learn about using #CURRENT_ITEM_HELP_TEXT# to create item help.

Use the #CURRENT_ITEM_HELP_TEXT# substitution string to create inline page Help text when a page is rendered. For example, you can use this substitution string to create page Help text which displays as a tooltip when the mouse hovers over the page item label. This placeholder enables you to include help text on the page when it is rendered without having to perform an expensive Ajax call.

Tip: Only use this placeholder if the Help text is short. The generated page always includes the help text of all page items.

Example Label Template

Before Label:

<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#">
<span class="helpText">#CURRENT_ITEM_HELP_TEXT#</span>

After Label:

</label>