Click or drag to resize
FormHelperEnsureDefaultValues Method
Ensures the default class values to the Data container for required fields (not allowing empty value) without a value.

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 8.2.23
Syntax
C#
public static bool EnsureDefaultValues(
	string className,
	IDataContainer container,
	FormResolveTypeEnum resolveType = FormResolveTypeEnum.None
)

Parameters

className
Type: SystemString
Class name
container
Type: CMS.BaseIDataContainer
Data container
resolveType (Optional)
Type: CMS.FormEngineFormResolveTypeEnum
Type of macro resolving

Return Value

Type: Boolean
Returns TRUE if at least one default value was ensured.
See Also