You searched for the word(s): 2
-
Just use a substring-after formula for your display or the field. substring-after(userName(), "i:0#.w|bcldb\")
-
I am looking to see if I can do the same on my own but I can't seem to get the rule to work properly. I am try to set the rule as AccountId not equal to userName() but AccountId is not an option. What am I doing wrong?
-
When I call the value of the person's username by entering the username() function into a field, it shows as:
i:0#.w|bcldb\dwsmith
I'd like to be able to hide everything up to the beginning of the user ID, "dwsmith", or truncate the first 13 characters, so only the 8-character user ID shows. This one is only 7 characters ...
-
Understandable, and people picker fields are kind of weird - it isn't immediately obvious that they are a repeating group with fields in them :)
-
Oh okay, since I'm new to this I didn't know this.
-
If you look at the fields bound to the person / group picker, one of them is the account id? The account id field is part of the person / group picker?
-
Okay, I guess I'm confused. How does the Account ID field return or grab the name of the first person/group picker? I don't see any rule or function tied to this field.
-
The account id field of the people picker has that value :)
-
I understand that the userName() function returns the name of the person filling out the form, but can this function or is there some other function that can return the name of the first person/group picker?
-
So I just put those on the form for your information - in the formatting on the second people picker, I'm hiding it if the account id from the first people picker doesn't match the result of the InfoPath userName() function - check that formatting on both the second people picker and the calculated value below it.