InfoPath User Name

Posted on 2011-09-20
Medium Priority
Last Modified: 2012-05-12
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?
Question by:GordonMasson
  • 2
  • 2
LVL 28

Expert Comment

by:Clay Fox
ID: 36568369

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.

Author Comment

ID: 36572556
Thanks for that clayfox

That works but it gives me a log on ID rather than the users actual name.
Can that be changed?
LVL 28

Accepted Solution

Clay Fox earned 2000 total points
ID: 36573314
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.

Author Closing Comment

ID: 36923098
Thanks for the info.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
There are more than 1000 cryptocurrencies available across the world, but Bitcoin has gained a significant advantage over others. The cryptocurrencies are capitalizing the market with more than $150 billion dollars.
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question