Skip to content

Label

Label displays text; it does not write a value to the form data. Configure its content in the Content element. The content may be static text or a template such as {{Customer/Name}}, which can display a value from the form or the current row without adding an input field.

Content Behavior

Template values are formatted with the form's culture. Static text is resolved through the active language dictionary, so use a localization entry when the same label must be translated. A normal label renders text, not HTML: markup in Content is displayed literally. The only special output is the [time .../] form, which is rendered as a time element for time-aware display.

An empty label displays the standard empty-value placeholder while the form is running. In the form designer, select a Label and double-click its text to edit Content directly.

Style

Use Style to select the Label's typography. Leave it empty to use the default appearance. The following styles are provided by the theme:

  • Heading: Prominent title text.
  • Subheading: Secondary title text.
  • Description: Muted explanatory text.
  • Emphasis: Highlighted body text.
  • Small: Smaller, muted text.

Any other value is treated as a custom style name. The style is applied as the CSS class userStyle-{Style}, so a custom style can be defined in the form stylesheet.

Badge Appearance and Tone

Set Appearance="Badge" to render the label as a compact status or category pill. Appearance is independent of Style: a badge can still use any typography style.

Tone selects a semantic color: Neutral, Success, Warning, Danger, or Info. It can be a fixed value or a literal expression such as {{@StatusTone}} that is evaluated against the current form or row data and refreshed when that data changes. Tone names are case-sensitive; an empty or unknown value uses neutral styling. Tone is independent of both Style and Appearance.

XML Fields

  • Content is the text to display. It can be static text or a data template evaluated with the current form or row data.
  • Style selects the Label's typography style.
  • Appearance is Default or Badge.
  • Tone selects the semantic color, either as a fixed name or a literal expression.

Label is display-only and has no XPath, Hints, or Rules fields. Use a Message or another input widget when the content needs conditional form behavior.

Examples

1
2
3
<Label Style="Heading">
    <Content><![CDATA[Request for {{Customer/Name}}]]></Content>
</Label>

A status badge whose color comes from the StatusTone attribute of the current row:

1
2
3
<Label Appearance="Badge" Tone="{{@StatusTone}}">
    <Content><![CDATA[{{Status}}]]></Content>
</Label>