Label

The Label Web Control displays text to a user. Labels also accept unicode to add emojis or symbols.

General

Control Properties

Text

Expects type text.

The text that is displayed on the Web Page.

Format

The HTML tag that wraps the label on the page for accessibility purposes. If empty, it defaults to a "span" tag. It does not affect how the label is displayed.

Style and Layout

The default Label Variants allow builders to quickly choose among body or heading styles.

Check Common style properties of web controls for further details on how to style your Label Web Control.

Advanced

State

Is Visible

Expects type boolean.

If TRUE the label will be visible. If FALSE the label will not be displayed. If the field is empty, the label will be visible.

Example #1

To make a Label change based on a variable, you must edit the Expression for the text of the label. Here's an example where we personalize a greeting by inserting the text variable firstName into the text using the {{ }} inside of a string to evaluation Airscript.

Example #2

In real-world scenarios you might not have a value for firstName so you can create a simple conditional using IF() and ISEMPTY() to check if there's a name and change the label accordingly.

Last updated