Allow to add multiple user in people picker field
-
07-01-2021 - |
Question
My user want to add multiple users in each approval PeoplePicker field. I customized my list using InfoPath. How can I allow multiple users?
NB: I tried using list setting to allow, but I got an error:
The data types of the following form fields do not match the SharePoint list: Member to be included Correlation ID:1d30edd9-654b-477c-b1a2-c69dcf194c57
Solution
change your user field in SharePoint list settings to Allow multiple selections: yes
open infopath and let infopath refresh the fields or perform a manual refresh on data/refresh fields menu
then remove your field from the infopath form (Just from the form, not from the library)
then and drop it again into your form, this will fix any issues with the previous control
OTHER TIPS
I will present you some example how I managed to make it work
public pickersFields: any = [
{
name: 'Responsible',
parent: 'ResponsiblePeoplePicker',
type: 'User',
multiple: true
},
{
name: 'Receiver',
parent: 'ReceiverPeoplePicker',
type: 'User',
multiple: false
}
];
So, if you want to enable multiple selection, you should use multiple: true