HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


You can set up single/multiple selection from a list of predefined values by using the `SelectOne` and `SelectMany` attributes, located in the `EPiServer.Shell.ObjectEditing` namespace in the `EPiServer.UI` assembly. You can define these attributes on a property and require a reference to a class implementing the `ISelectionFactory `interface:



The result looks something like the following image:



## Create your own attributes

You should follow the DRY (_Don't Repeat Yourself_) principle and avoid adding the reference to the selection factory in a lot of attributes by creating your own attribute, if you use them in several places. Inherit from the `EPiServer` attributes and override the `SelectionFactoryType` property as shown in the following example: