Our client needs several product fields that are both filters and multiselect. I have defined them in ProductFieldDefinitionSetup.cs:
new FieldDefinition<ProductArea>("NewField", SystemFieldTypeConstants.TextOption)
{
CanBeGridColumn = true,
CanBeGridFilter = true,
Option = new TextOption
{
MultiSelect = true,
Items = new List<TextOption.Item>
{
}
}
},
as you can see I have skipped defining the Options, added them in back office and this actually works. However, do I need to define this field anywhere else (ProductItemViewModel.cs and ProductItemViewModelBuilder.cs for example)?
Litium version: 7