The Default Value property sets an initial value to the control while allowing a new value to be entered or selected by the user.
Property Type: Static
Default Value: (Check Box) False
Default Value: (Combo Box, List Box, Text Box, Option Group) No default value is applied to this property
Default Value: (Numeric Text Box, Slider, Spin Button) 0
Ensure the property is a static property (It will display the gray orb alongside the property name)
The default value of the static property can be changed by entering the required value directly in the property field.
Default Value Property Value (static) | Result |
---|---|
True (Check Box) | Will set the value of the control to be True until changed by the user. |
Blue (Combo Box, List Box, Text Box, Option Group) | Will set the value of the control to be Blue until changed by the user.
The value being returned by the Default Value rule must be selectable from the listed Items. |
200 (Numeric Text Box, Slider, Spin Button) | Will set the value of the control to be 200 until changed by the user. |
A rule can also be built for this property by changing the type to dynamic.
See How To: Change A Static Property To A Dynamic Property.
Default Value Property Value (Dynamic) | Result |
---|---|
IF(LengthReturn<500, True, False) (Check Box) | Will set the value of the control to be True when the control Length is less than 500. |
IF(CheckBoxReturn=True, Blue, Red) (Combo Box, List Box, Text Box, Option Group) | Will set the value of the control to be Blue when the control Checkbox is True. |
IF(CheckBoxReturn=True, 500, 100) (Numeric Text Box, Slider, Spin Button) | Will set the value of the control to be 500 when the control CheckBox is True. |
Using the Default Value property, controls can reference each other. The circular reference created is handled by DriveWorks.
Default Value Property Value (Dynamic) | Result |
---|---|
On a control named NumericTextBox SliderReturn | Will set the Default Value to be the result of the control NumericTextBox |
On a control named Slider NumericTextBoxReturn | Will set the Default Value to be the result of the control Slider |
Value set in Form Designer. For DriveWorks projects static properties can be made Dynamic by double clicking the gray radio button.