Methods | DocumentItem.SetFieldData(IChoiceFieldItem, IEnumerable, Boolean) Method
Allow to set values for choice and multi choice field
Syntax
C#
Copy
public void SetFieldData( IChoiceFieldItem choiceFieldItem, IEnumerable<string> values, bool addIfMissingValue = false )
Parameters
choiceFieldItem IChoiceFieldItem
AsChoiceFieldItem()
values IEnumerable <String>
Values with should be selected in choice field. If choice field is single choice first value is selected
addIfMissingValue Boolean (Optional)
If true missing values are added to choice field
See Also
Reference
DocumentItem Class
SetFieldData Overload
Compiled.EDD.Scripting Namespace