Returns default value set for given form field or a default value according to the field data type if required. This default value will be in the same culture as the database.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- fieldInfo
- Type: CMS.FormEngine FormFieldInfo
Form field with default value
- errorMessage
- Type: System String
Error that occurred during stored default value validation.
- forceDefaultValue (Optional)
- Type: System Boolean
Indicates whether data type default value should be used when no default value is stored in the form field.
Return Value
Type: StringSee Also