I would like to use the SPCLientPeoplePicker to generate a result set without manually typing into the people picker input field. I want to do this by javascript having the people picker control hidden.
SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePicker_TopSpan.AutoFillControl.AllOptionData - gives me all the information I need given the fact that I have manually entered something into peoplePicker_TopSpan_EditorInput. I do not know how it compiles the result in AllOptionData...
It is not sufficent just to change value in the editorInput with javascript. Some kind of event is triggered at user input and I cant find out which and where.
There is also a hidden input field which I have also tried to change value on but without further luck.
I would like it all to be done client-side with javascript. How can it be done?