0

Hi I am using infopath 2010, in code behind we are getting some users from external data source. Now we want to bind these users to a people picker control. meaning if i open the form and i clicked on a people picker control - i should be able to search only from the users who are bind to the control and not others. Any suggestions on this type of binding? enter image description here

If i bind 4 users from the code behind to the people picker field - only those 4 users should be allowed to be selected in the people picker control.

1 Answer 1

1

Actually people picker control don't work like this, you can bind people picker control to SharePoint security group which contains these four users.. But obviously you can't create a new group each time you want the user to select..

Best is to provide a custom selection view within InfoPath, once selected you can show the selected people in a text box..

2
  • Thanks for the reply - actually those users who i need to bind will come by querying the active directory in code behind(or data connection). is there any way that we can connect the people picker field to web service that queries the AD based on a filter which brings only selected users?
    – SandeshR
    Feb 21, 2014 at 2:06
  • As I said, you can build your custom view with Repeating Table and make your custom selection method Feb 21, 2014 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.