-
So - I don't see the substring-after function in your filter. I still don't really understand what the issue is, outside of that - I'd expect once you've added the substring-after function, when you open the form in the browser, you would see your first name. If someone else opened the form who was in your list, they would see ...
-
It is very basic file. It's more/less a learning file for me to figure out how to do it.
-
Can you attach a copy of your form under the Options tab in a reply?
-
This will just work for myself though. I need to autopopulate the field with the current user. I know when I put in the substring-after(username(), "i:0#.w|bhate\") it will bring up the current username ex: etipton in SP. I have an employee list that I need the username to reference. i have created a rule that the value is the fullname ...
-
I'd think you'd need the domain, I'd try substring-after i:0##.w| myself. I'd assume it won't work in preview, because the user name won't have the prefix.
-
I have tried that. when i do username=username() in preview it works. In sharepoint all the usernames have i:0#.w|bhate\ before the username so I tried adding that to the substring-after then the username(), "i:0##.w|bhate\ and it still didn't work in sharepoint. when Ii add the substring-after to it, it does not show in preview
-
The userName() function may be including a claims prefix when published & opened in the browser. Can you put a calculated value on the form that has the userName() function for its value to see if there is a difference between preview & browser?
-
I am trying to autopopulate the current user in a field where the username=SP username. Once I put the rules in it shows correctly in the preview in infopath. Once i publish it in SP, it does not autopopulate like I need it too. What am I doing wrong as far as publishing it? I have attached to screen shots of what I am seeing.
-
Thanks Hilary, I'll give it a spin!
-
How odd. I would think as long as it is indexed, you'd be able to query on it.