1

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

3

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

  • Thanks Mike. Quick question for you, What about the workflow that I attached ? If I removed it , the workflow gonna get error. What do you think? – Sara Dec 7 '17 at 20:48
  • I mean does it affect the workflow or not when i delete the field in the form? – Sara Dec 7 '17 at 20:58
  • Not at all, Info path form fields are visualizations of SharePoint fields, by removing a field from the form, you are only removing the ability to edit the fields. as long as you don't remove them from the list it won't affect the workflow – Mike Dec 7 '17 at 21:02
  • yet, there can be problems when you modify the field to a multiple user field, as now it will hold more than one value, if you have a lookup to the users field you'll have to change how to retrieve them (normally you'll have the comma separated option) – Mike Dec 7 '17 at 21:06
  • When i delete the field in the info path form, it delete from the list at all. I might be wrong – Sara Dec 7 '17 at 21:18
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.