BaseFieldEditor GetDefaultValueInDBCulture Method Kentico 8.1 API Reference
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.UIControls
Assembly: 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: OnlineSystem String 
Error that occurred during stored default value validation.
forceDefaultValue (Optional)
Type: OnlineSystem Boolean
Indicates whether data type default value should be used when no default value is stored in the form field.

Return Value

Type: OnlineString
See Also