<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

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