We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Anouck Fierens • 5 years ago

Hi Giuliano,

first of all thanks for this solution. I have a question. I will have multiple people pickers on my spfx webpart. Is there a way when using the onChange set the values to an array included with a propertie you pass to the function. like onChange=this._onChange.bind(this, variable)?

Giuliano De Luca • 5 years ago

Hi, sorry for the big delay here I think you already solved

Ram Manepalli • 6 years ago

Hi Giuliano,

Is this solution works with SPFx 1.8.2? I See HTTPClientbatch not supported?

Giuliano De Luca • 6 years ago

As far as I know should work with 1.8.2 as well

dom net • 7 years ago

Hi Giuliano, I was trying to get get the data from the selected user in peoplepicker, but i dont know how,can you please help me?

Giuliano De Luca • 7 years ago

I think that you have to make use of the onItemSelected event, once you have the user you can execute other Rest API call to grab more info:
https://developer.microsoft...

Sreejith Unnikrishnan • 7 years ago

Hi Giuliano, I was trying to use this component in one of my project and i ended up getting an error saying
//Error
[SPLoaderError.loadComponentError]:
***Failed to load component "971d482d-cee6-47eb-ac2f-d8f447e218bf" (TravelRequestWebPart).
Original error: ***Failed to load entry point from component "971d482d-cee6-47eb-ac2f-d8f447e218bf" (TravelRequestWebPart).
Original error: Error loading https://component-id.invalid/971d482d-cee6-47eb-ac2f-d8f447e218bf_0.0.1
Cannot find module "OfficeUiFabricPeoplePickerStrings"

//Ends

1 ) I just ran the npm i spfx-office-ui-fabric-people-picker
2) I configured the properties for the PeoplePicker as below,
<officeuifabricpeoplepicker sphttpclient="{this.context.spHttpClient}" siteurl="{this.context.pageContext.absoluteUrl}" typepicker="{TypePicker.Compact}" principaltype="{PrincipalType.User}" numberofitems="{10}"/>

3) I was able to succesfully build the app
4 ) I ran gup serve
5) I got the above error.

Can you please guide me to fix it.

Giuliano De Luca • 7 years ago

Hi, It is difficult to say but seems like that the module OfficeUiFabricPeoplePickerStrings is missing in your solution, have you renamed some module in your project?

Sreejith Unnikrishnan • 7 years ago

Hi Giuliano,

Thank you for taking time to reply to my query. I somehow managed to fix it just by copying files from the solution rather than doing npm install.

Giuliano De Luca • 7 years ago

Perfect ;-)

Bhavik Vartak • 7 years ago

Hello,

I am unable to remove selected user from the picker. What will be the issue??

Thanks,
Bhavik Vartak

Giuliano De Luca • 7 years ago

Hi,

Please can you take a look in the browser console if you receive some message error?