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
InfoPath Contact Selector – Limitations & Workarounds – Part 1
By peter.stilgoe
The contact selector available in InfoPath is a very useful control but has some pretty big feature limitations which will hopefully be rectified in Sharepoint 2010 / InfoPath 2010 but I havent had time to check yet.
How to make the InfoPath contact selector mandatory – http://www.myriadtech.com.au/blog/Alana/Lists/Posts/Post.aspx?ID=16
Limit the number of names a user can enter into the InfoPath contact selector – http://www.myriadtech.com.au/blog/Alana/Lists/Posts/Post.aspx?ID=13
Using the InfoPath contact selector to get other users details eg Dept, Office, Manager etc from the User Profile Database – http://www.myriadtech.com.au/blog/Alana/Lists/Posts/Post.aspx?ID=15



June 8th, 2010
