Using eval function for people picker in InfoPath


SharePoint

Display Name of Multi Selection People Picker:

substring(eval(eval(Person, ‘concat(pc:DisplayName, “, “)’), “..”), 1, string-length(eval(eval(Person, ‘concat(pc:DisplayName, “, “)’), “..”)) – 2)

Display Account IDs of Multi Selection People Picker.

substring(eval(eval(Person, ‘concat(pc:AccountId, “;”)’), “..”), 1, string-length(eval(eval(Person, ‘concat(pc:AccountId, “;”)’), “..”)) – 1)

* select till “Person” xpath of people picker field.

View original post