Making the Contact Selector mandatory in an InfoPath form
By peter.stilgoe
OOTB you cannot make the contact selector in a InfoPath form a mandatory field. However you can easily get round this by doing something like this.
- In my datasource I tend to create a hive called ‘Validation’ (This is where I hold or my extra fields I use to carry out my various validation routines)
- Create a field in here called something like ‘EmployeeName’ or whatever your preference but something logical / descriptive
- Now set this fields default value to equal the field you are actually using for your contact selector ie. EmployeeName = DisplayName
- Now as EmployeeName = DisplayName set a validation rule on ContactValidate so that it cannot be blank
Now your contact selector is a mandatory field.
More From pstilgoe
Contact Selector , infopath tips & tricks 


June 8th, 2010
