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
If the form has not been published to a SharePoint site the settings of the the SharePoint site need to be specified as below
You can search for the user
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
- Validate User Control :
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
- Right-click the control in the view and select Person/Group Picker Properties from the context menu
- In the Person/Group Picker Properties dialog, select the SharePoint Server tab
- 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
It validates if a wrong entry is encountered similar to the SharePoint People Picker control.