Default value
Default Value
The Default value property automatically sets a value when the form opens for the first time in the Work Portal. This property is used when a control typically expects a value and is helpful as it saves the end user some clicks.
As soon as a value is chosen, other than the default value, the default value will be replaced.
If the control is valued by means of an expression, the default value set in the property will be ignored.
The Default value property is displayed for the following controls in the Advanced Properties tab:
- Combo: Set a default value using an expression.
- Date: Set a default value using a fixed date or an expression.
- List: Set a default value using an expression.
- Money: Set a default value by entering a fixed number or using an expression.
- Number: Set a default value by entering a fixed number or using an expression.
- Radio: Set a default value using an expression.
- Text box: Set a default value by entering a fixed text or using an expression.
- Yes/No: Set a default value by selecting "Yes" or "No" or using an expression.
The Default value property will allow you to enter or select a value, or an expression, according to the control type. When a value or expression is selected, it will be shown in the property's description area.
To edit the property, click the icon.
To delete the value, click the icon. Be cautious when deleting, as Bizagi does not prompt to confirm deletion. However, you can always click Undo if you delete a default value by mistake.
If you set the property using an expression, you can edit the expression by clicking either the icon or the
icon .
Note: Keep in mind that the type of value returned in the expression must coincide with the type of value that the control manages (e.g., dates with dates, integers with integers). If they are different, errors may occur in the execution of the form.
Note: If you are using an expression, its name will be displayed on the left. If the name is too long to fit in the box, hover with the mouse, and a tooltip with the complete name will display.