Jeremy Stein - Brain

« »

Don’t use InfoPath’s userName function to set the default value for a people picker

In InfoPath 2010, you can make a people picker default to the current user by setting AccountID’s default value to userName(). However, if you use this value later, say to compare to the form’s creator, you may run into an issue. The userName function doesn’t include the domain. Instead, you may want to fetch the user’s official AccountName from their profile in the FormEvents_Loading method.

July 24, 2012 1 Comment.

One Comment

  1. Anon replied:

    I think this hotfix *might* fix that: http://support.microsoft.com/kb/2516485.

    July 24th, 2013 at 5:50 pm. Permalink.

Leave a Reply

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

Why ask?

« »