Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

InfoPath User Name

Is there a way that i can find out the persons name who is filling in an InfoPath form and display his name in a text box automaticaly?
0
GordonMasson
Asked:
GordonMasson
  • 2
  • 2
1 Solution
 
clayfoxCommented:
yes.

In functions there is one called username()

that will return the local account name.

You can use Sharepoint or www.qdabra.com's Active Driectory web service to get more things like display name, domain account, email, manager, etc.
0
 
GordonMassonAuthor Commented:
Thanks for that clayfox

That works but it gives me a log on ID rather than the users actual name.
Can that be changed?
0
 
clayfoxCommented:
like I said, you need something more to get that.  

Ideally your user names are firstname.lastname and you could use a translate and substring functions to clean it up but you only have the used id to begin with.

Another option is to make an XML list which has a translation of userid to display name, but then this would need to be maintained.
0
 
GordonMassonAuthor Commented:
Thanks for the info.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now