I have a text field and I want to set it to the name of the logged in user.
For example, if the username logged is "smithb", and his full name in AD is
"Bob Smith", then I want to display "Bob Smith". Or if that's not possible,
then just display "smithb".
Easiest way that I know of is to go to the properties of the text field, go
to the Default Value, click on the fx, click on Insert function and select
userName.
> I have a text field and I want to set it to the name of the logged in user.
>
> For example, if the username logged is "smithb", and his full name in AD is
> "Bob Smith", then I want to display "Bob Smith". Or if that's not possible,
> then just display "smithb".
Bob - 23 Oct 2006 21:31 GMT
The function "username" does not appear in the list. My version of Infopath
is 2003, do I need a newer version?
- Bob
> Easiest way that I know of is to go to the properties of the text field, go
> to the Default Value, click on the fx, click on Insert function and select
[quoted text clipped - 5 lines]
> > "Bob Smith", then I want to display "Bob Smith". Or if that's not possible,
> > then just display "smithb".
daw - 23 Oct 2006 21:36 GMT
Oops, I didn't think about the version. I'm using 2007 and haven't used any
other version. I'm not sure in 2003.
> The function "username" does not appear in the list. My version of Infopath
> is 2003, do I need a newer version?
[quoted text clipped - 10 lines]
> > > "Bob Smith", then I want to display "Bob Smith". Or if that's not possible,
> > > then just display "smithb".