Share via


ListFieldChoice.AddChoice Method

SharePoint Designer Developer Reference

Adds a new choice to the list of available choices for the current field.

Syntax

expression.AddChoice(text, Index)

expression   Required. A variable that represents a ListFieldChoice object.

Parameters

Name Required/Optional Data Type Description
text Required String Specifies the text that will appear in the drop-down list or beside an option button.
Index Optional Long Specifies the position of the choice within the list of choices.

See Also