AB#68534 - People Picker for forms #1216
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The People Picker feature is now fully completed. Building on the initial version, which already had the basic field working in SurveyJS with lazy-loaded search and correct value storage, we now support two field types: People (Single) and People (Multiple), both available in the SurveyJS toolbox. Search has been switched from the old Apollo client setup to the Common Services REST endpoint, still using debounce, and showing results in the "FirstName LastName (email)" format. The multi-select field now displays chosen users as removable chips for a much clearer UX.
We improved how values are stored. Instead of saving just the userid, each selection now stores the full user object (firstname, lastname, email, userid). This solves the remaining Grid-related tasks: grids can display names immediately without extra lookups, and sorting and filtering work smoothly because all relevant metadata is already available. Grid rendering is now fully functional for both single- and multi-select fields.
Pagination is no longer needed since the REST endpoint only supports whole-word matching.
Type of change
Please delete options that are not relevant.
Checklist:
( * == Mandatory )