Thursday, March 7, 2013

InfoPath - People Picker Control

Recently I have had the opportunity to deep dive into K2 project where the InfoPath form needed some validation for a valid user and display the current user email.

Well, after scratching my head for a long time I found that this was not something very complex.
All you need to do is the below


  1. Validate User Control :
     InfoPath 2010 comes with Out of box. To add this control in InfoPath 2003 please click here : Contact Selector - Infopath 2003





  

 

Specifying a valid SharePoint site to fetch the existing users and Sharepoint Groups

This Picker controls connects to the SharePoint site the infopath form has been published to.
If the form has not been published to a SharePoint site the settings of the the SharePoint site need to be specified as below
  1. Right-click the control in the view and select Person/Group Picker Properties from the context menu
  2. In the Person/Group Picker Properties dialog, select the SharePoint Server tab
  3. Type the URL of the SharePoint site you want to query




Mandatory field property can be set as below:






A perfect validation is all we need!

You can check for free text validations


 You can search for the user



It validates if a wrong entry is encountered similar to the SharePoint People Picker control.

No comments:

Post a Comment