Click or drag to resize
BaseFormBuilderMoveFieldsInternal Method
Moves fields specified by fieldNames to new position in category with name category.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntax
C#
protected string MoveFieldsInternal(
	IEnumerable<string> fieldNames,
	string category,
	int position
)

Parameters

fieldNames
Type: System.Collections.GenericIEnumerableString
Field names to move
category
Type: SystemString
Name of category to which the fields will be moved; if empty position is taken from the beginning of the form
position
Type: SystemInt32
Position in category/form to which the fields will be moved; starts from 0

Return Value

Type: String
Remarks
Returns an error message in case any field from fieldNames doesn't exist. Method modifies current form definition but does not save the changes!
See Also