microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
47 stars 45 forks source link

Picklist (string) multiple values error "... is not in the list of supported values." #55

Closed VincentVerweij closed 5 years ago

VincentVerweij commented 6 years ago

Hello,

I have added a new field of type Picklist (string) to which I have added all necessary items where the users can choose from. Next I add the multivalue control and I refer to this new field without providing Options (as said, for a Picklist this is not needed).

But from the moment that I want to create a new task (the WIT for which I added this multivalue control) and I pick let's say 2 items ABC and XYZ, the VSTS validation system complains, giving me an error like: "The field 'Company' contains the value 'ABC;XYZ' that is not in the list of supported values."

image

On the page itself I see the two selected items with the rectangle around each item (as depicted in the documentation), but it doesn't allow me to save due to the validation error.

Kinds regards, Vincent Verweij

VincentVerweij commented 6 years ago

While looking in Closed issues, I found that I was not the only one which has this issue. Apparently the fix is to make sure that your underlying field has "Allow users to enter their own values" checked. Which can be found in the Options section:

image

Perhaps it would be a good idea to note this somewhere in the readme.md as not all people (even I, appologies for that) do look into the closed issues.