Label
Overview
The following example demonstrates how to create a Label control on a Wayfast page.
Labels allow to display read-only values like titles, field descriptions or text.
How to create a “Label” control?
First let’s open a page. We are going to use an example project called “HRSampleApp” and a Page named “New employee form”.
Let’s open the WYSIWYG.
Drag a “Label” control and drop it in the Layout.
Double-click the “Label” to edit its properties.
In “General” tab, type a name and a description. For example we can name this label “lblTitle” and add “Title:” in “Displayed Name” field.
General tab properties specific for this control
Field | Description |
---|---|
Default Value | Sets the value to be displayed on the screen. It can be either a constant value or a variable. |
Add as Variable | When checked this property allows to use this object as a variable. |
Data Binding tab contains a property to source Label’s value from a Dataset. When a value is for “Default Value” property in “General Tab”, Dataset property is disabled.
Let’s click on the “Preview” button to see how this control looks like:
And this is how our Label control looks like!