Label
Last updated
Was this helpful?
Last updated
Was this helpful?
The Label Web Control displays text to a user. Labels also accept unicode to add emojis or symbols.
Expects type text
.
The text that is displayed on the Web Page.
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.
The default Label Variants allow builders to quickly choose among body or heading styles.
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.
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.
Check for further details on how to style your Label Web Control.
In real-world scenarios you might not have a value for firstName
so you can create a simple conditional using and to check if there's a name and change the label accordingly.