2

I have an infopath form, where several fields exist. Everything is fine with textbox fields, but there is some trouble with people picker field. I can pre-assign initial value for these field, but when I edit, it doesn't store the new value. Can anybody tell me, what is the problem? Or maybe you can provide with some links, because I didn't find a solution for such kind of a problem.

2

To successfully set the value of a people picker field, you have to correctly populate all three fields: DisplayName, AccountId, and AccountType. AccountType is either "User" or "Group", but the other two have to align with your AD or wherever you're getting your user data from. That's pretty straightforward if you are always going to be a single user or group. If you need to dynamically assign a people picker, use a function like this to assign each value explicitly:

enter image description here

(source)

  • The "here is a detailed walkthrough" URL referenced above is no longer valid. – Alan M Jan 29 '15 at 1:35
  • @AlanM thanks for bringing that to my attention. Updated. – Aron Foster Jan 29 '15 at 13:54
  • Nice blog,very help full,I was facing same issue but now fix with the help of your blog – hasan Apr 14 '15 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.