Widget
The Widget attribute lets you attractively visualize a numeric value on the form – as a numeric value, progress bar, circular progress bar, or gauge – optionally in relation to a minimum, expected, and maximum value.
Additional information on the Widget attribute is available in this article on the WEBCON Community website.
Properties



1. Widget type
Lets you choose one of four widget types:
| Option | Description |
|---|---|
| Numeric value | The value is presented as a number |
| Progress bar | The value is presented as a progress bar |
| Circular progress bar | The value is presented as a circular progress bar |
| Gauge | The value is presented as a gauge |
2. Appearance scheme
Lets you choose the widget's appearance scheme – only available for the Numeric value type:
| Option | Description |
|---|---|
| Left-side highlight | A colored highlight on the left side of the widget |
| Top-side highlight | A colored highlight at the top of the widget |
| Fill | The widget's entire background is filled with color |
| No highlight | The widget has no colored highlight |
3. Displayed value
- Displayed value – lets you define an expression for the value presented on the widget.
- Show in widget – a switch that lets you specify whether the displayed value is shown on the widget.
- Show as % of expected value – a switch that lets you choose how the value is presented: as the value itself, or as a percentage indicator representing the displayed value's share of the expected value.
4. Expected value
Expected value – lets you define an expression for the expected value the displayed value is presented against. The Show in widget switch lets you specify whether the expected value is shown on the widget.
5. Minimum value
Minimum value – lets you define an expression for the widget's minimum value. If no minimum value is defined, the default value of "0" is used. The Show in widget switch lets you specify whether the minimum value is shown on the widget.
6. Maximum value
Maximum value – lets you define an expression for the widget's maximum value. If no maximum value is explicitly specified, the system uses a default value calculated as follows (the Show in widget switch lets you specify whether the maximum value is shown on the widget):
- when both the displayed and expected values are provided, the larger value is used as the maximum value,
- when only the displayed value is defined, it is treated as the maximum value.
7. Display format
- Unit displayed as – a switch that lets you choose whether the unit is displayed as a suffix or a prefix of the value.
- Unit format – lets you define an expression for the unit displayed alongside the value.
8. Widget colors
-
Widget main color – lets you set the widget's main color, choosing a predefined color:
Option Description Use application color The application's main color Use report color in theme The report color defined in the theme Use alternative report color in theme The alternative report color defined in the theme or a custom color.
-
Color above expected value – lets you set the widget's color once the displayed value exceeds the expected value – like the main widget color, either a predefined or a custom color.
-
Show color scale – a checkbox that lets you specify whether a color scale is displayed on the widget.
-
Additional coloring conditions – a switch that activates a table for defining additional widget coloring rules based on exceeding specific thresholds. Each row contains:
- Threshold type – specifies whether the threshold is expressed as a percentage or an amount,
- Basis – specifies which value (e.g. the expected value) the threshold is calculated against,
- Value – the threshold value beyond which the defined color is applied,
- Color – the color applied once the threshold is exceeded.
New conditions are added with the Add condition button and removed with the trash icon next to a row.
9. Show form field name
Show form field name – a switch that lets you specify whether the field name is displayed. Checking it activates a drop-down list letting you choose the name's position:
| Option | Description |
|---|---|
| Above | The field name is displayed above the widget |
| Beside | The field name is displayed next to the widget |
| Below | The field name is displayed below the widget |
Usage example
