Click or drag to resize

DocumentItemSetFieldData Method (IChoiceFieldItem, IEnumerableString, Boolean)

Allow to set values for choice and multi choice field

Namespace:  Compiled.EDD.Scripting
Assembly:  Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 7.6.1.3-5cb5c356
Syntax
C#
public void SetFieldData(
	IChoiceFieldItem choiceFieldItem,
	IEnumerable<string> values,
	bool addIfMissingValue = false
)

Parameters

choiceFieldItem
Type: Compiled.EDD.ScriptingIChoiceFieldItem
AsChoiceFieldItem
values
Type: System.Collections.GenericIEnumerableString
Values with should be selected in choice field. If choice field is single choice first value is selected
addIfMissingValue (Optional)
Type: SystemBoolean
If true missing values are added to choice field
See Also