InfoPath: Run a validation rule on a people picker field (sort of).

You cannot run a validation rule on a people picker field, however this is what you can do to achieve the same effect:

You can create a single line text field.

Set the default value of the text box to be populated by the people picker field (Display Name, Username (AccountID), or Account Type).

Place the text field into your form

Put a formatting rule that hides this field.

Put a validation rule on that text box.

I also put a section in that had an explanation that had a formatting rule that had the same condition as the validation rule.

This entry was posted in InfoPath, SharePoint and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted January 5, 2015 at 8:54 pm | Permalink

    Hi,

    Thanks for the article..
    How to accomplish this?

    Set the default value of the text box to be populated by the people picker field (Display Name, Username (AccountID), or Account Type).

    • Posted January 8, 2015 at 1:18 pm | Permalink

      In InfoPath you should be able to use the Set fields value action rule to accomplish this. When choosing a field to set the value to make sure you click the Show advanced view under the list. This will allow you to access the Display Name, Account ID and Account Type. Hope this helps!

  2. Posted July 4, 2015 at 5:03 am | Permalink

    Thanks! Works perfectly.

Leave a Reply

Your email address will not be published. Required fields are marked *