surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.12k stars 802 forks source link

SharePoint People Picker #1790

Open mellolr1 opened 5 years ago

mellolr1 commented 5 years ago

Are you requesting a feature, reporting a bug or asking a question?

Question

Is it possible to integrate a people picker control from @pnp/spfx-controls-react/lib/PeoplePicker?

andrewtelnov commented 5 years ago

@mellolr1 There are two options. 1) Use Vanila/jQuery People Picker. Create a custom widget based on it. You will find the example of creating custom widget here 2) It would require more job, but you may use exact this SharePoint People Picker. You will need to create a new question type, in the Survey Core, likely use QuestionCheckbox as parent class and then render it in react, by using SharePoint People Picker. You may use react QuestionCheckbox as parent class again.

Anyway, there is no easy way of doing it. The easiest variant is to use select2 tag box, but I doubt you like it.

Thank you, Andrew