TaxonomyItemPicker.RequireSelection TaxonomyItemPicker.RequireSelection TaxonomyItemPicker.RequireSelection Property


Gets or sets a value that indicates whether the user is required to make a selection in the TaxonomyItemPicker control before submitting the form.

 property bool RequireSelection { bool get(); void set(bool value); };
public bool RequireSelection { get; set; }
Public Property RequireSelection As Boolean
Property Value

true if a selectcion is required; otherwise, false.


This property determines the behavior when the TaxonomyItemPicker object is loaded with no initial selection. For example, possible reasons may include that the user has not saved a choice yet, or because the previously saved object cannot be found.

If the RequireSelection property is true, then the validation logic reports an error if no object is selected; otherwise, the TermStoreId and related properties return an empty GUID.

Applies to