Open bhoomesh-spe opened 1 year ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I found the solution : PropertyFieldCollectionData("kudozContentData", { key: "MyContentData", label: "My Content Data", panelHeader: "My Content Data", manageBtnLabel: "Manage My Content Data", value: this.properties.MyContentData, fields: [ { id: "customFieldId", title: "People picker", type: CustomCollectionFieldType.custom, onCustomRender: ( field, value, onUpdate, item, itemId, onError ) => { return React.createElement(PeoplePicker, { context: this.context as any, personSelectionLimit: 100, showtooltip: true, key: itemId, defaultSelectedUsers: item.customFieldId, onChange: (items: any = []) => { console.log("Items", items); item.customFieldId = items.map(ele => ele.secondaryText); onUpdate(field.id, items.map(ele => ele.secondaryText)); }, showHiddenInUI: false, principalTypes: [PrincipalType.User],
});
},
},
]
})
Hello Everyone
I have created the SharePoint Framework web part and saved the data under the property pane.
I have used @pnp/spfx-property-controls(v3.13.0) library to integrate property pane controls in my solution.
I need to integrate People Picker Control which allows multiple selections. But it is not working as expected.
I am unable to select multiple options and Data is not added to the JOSN.
I have tried with different 3 options. Below is the code snippet for the same.
Please check the screen capture video for more details.
Can anyone help me with the same?
Thanks