microsoft / vsts-extension-multivalue-control

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

The value of the field is too long #107

Closed mbendtsen closed 5 years ago

mbendtsen commented 5 years ago

Getting an error that the value of the field is too long. What is the max length? Is this a bug or can I do something to fix it?

Field Definition:

<FIELD name="Products" refname="Sonlinc.Products" type="String" reportable="dimension">
  <SUGGESTEDVALUES expanditems="true">
    <GLOBALLIST name="Sonlinc.Products" />
  </SUGGESTEDVALUES>
</FIELD>

WebLayout:

<ControlContribution Label="Products" Id="ms-devlabs.vsts-extensions-multivalue-control.multivalue-form-control">
  <Inputs>
    <Input Id="FieldName" Value="Sonlinc.Products" />
  </Inputs>
</ControlContribution>

Error description:

value too long

mmanela commented 5 years ago

To support longer values you should use a field with type PlainText instead.

bcarthic commented 5 years ago

For single line text field and one of the value of the picklist field, the max length is 255.