July 10, 2019 at 17:53 #26007
I have a need for a user to select someone from a group. The out of the box people picker configured this way requires the user to input a portion of the name before any results are returned to select. I thought I could use spjs.ac.peoplePicker with the listOpsionsOnFocus set to true to show all users in the group on focus. Is there a way to make that happen?
July 11, 2019 at 08:16 #26017
I guess this should work – have you tested it? – here is a link to the configuration example: https://spjsblog.com/dffs/dffs-plugins/spjs-autocomplete/#Autocomplete_in_a_people_picker
Please note that if you use SP 2013 you must set forceOn2013 to true.
July 11, 2019 at 13:53 #26025
It works but you must know a portion of the target user’s name or email address. Setting listOptionsOnFocus to true doesn’t change the behavior. My hope was that if that was set to true when you click into the control it would show the first [rowlimit] number of users in the group to select from.
July 11, 2019 at 23:14 #26037
That would be the expected behavior, but maybe I have a bug related to the listOptionsOnFocus setting. To be honest I have not focused on the people picker implementation since SP 2010 now that SP 2013+ have autocomplete on the pp already.
Just a little checkup: You have written the setting like this: listOpsionsOnFocus, but the correct format is this: listOptionsOnFocus. I guess it’s just a typo here, but if not you can try correcting it in the function call.
I’ll look at it and see if I can get it in the next DFFS release – hopefully during next week.
July 12, 2019 at 00:06 #26041
It was just a typo in the blog post. I copied the function from the documentation and changed false to true. When I click into the control nothing happens until I start typing. I appreciate you looking into it!
July 13, 2019 at 17:05 #26055
I’ll look into it when I return from an little vacation in the beginning of next week.
July 18, 2019 at 12:26 #26120
I tested now with the latest version and it does list the users when I focus the field – which version of spjs-ac are you running?
July 18, 2019 at 13:41 #26122
July 19, 2019 at 08:52 #26131
July 20, 2019 at 01:19 #26149
I tried with the new version with the same results. Below is the code I am using for reference. Maybe I have one thing out of line that is causing the behavior?
Person is a Person or Group type field; allow multiple selections = no; allow selection of = people only; Choose from = Person Group; enforce unique values = no
July 20, 2019 at 17:30 #26157
July 20, 2019 at 17:36 #26160
PERFECT! Thank you!!
You must be logged in to reply to this topic.