I have a field called customerType in the Metadata of a Schema. It is a multi-valued text field. I would like to update the Component using Event System to set the Metadata of this field. So far I am able to place single value into this field using the code snippet placed below.
foreach (ItemField field in metadataFields)
{
if (field.Name.Equals("customerType"))
{
((TextField)field).Value = "Test1";
}
}
Could you please let us know how to place multiple values in this multi valued text field. For instance, I would like to have "Test1" and "Test2" into this field.