Label property

ServerRelayButton.Label — Text

Represents the label of the button.

If this property is not set, it returns the label set for this button in Calcapp Creator.

Example

"Send data" & IF(!Field1.Valid, " ⚠️")"Send data" & IF(!Field1,Valid; " ⚠️")

Sets the button label to "Send data" if Field1 is valid (by consulting its Valid property). If Field1 is not valid, the button label is set to "Send data ⚠️" (with a warning triangle). You can also consider disabling the button if Field1 is invalid using the Enabled property, or making it invisible using the Visible property.