Expand Minimize

Declare attribute 'Mult' for Type 'LookupMulti' and 'UserMulti'

If attribute 'Type' of a field is 'LookupMulti' or 'UserMulti' the attribute 'Mult' must be set to TRUE.

CheckId SPC015111
TypeName DeclareAttributeMultForMultipleValueFields
Severity Error
Type Field

Add the attribute 'Mult' with value 'TRUE' according to MSDN: 'In order to allow enter multiple values into field with Type="UserMulti" you must set attribute Mult="TRUE".'. This is also necessary for Type 'LookupMulti'. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   ...
   <Field
      ID="{060e50ac-e9c1-4d3c-b1f9-de0bcac300f6}"
      Name="Amount"
      DisplayName="Amount"
      Type="UserMulti"
      Mult="TRUE"
      Group="Financial Columns" />
   ...
</Elements>

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC015111:DeclareAttributeMultForMultipleValueFields","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.