Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

InfoPath User Name

Posted on 2011-09-20
4
Medium Priority
?
332 Views
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?
0
Comment
Question by:GordonMasson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:clayfox
ID: 36568369
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
 

Author Comment

by:GordonMasson
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?
0
 
LVL 28

Accepted Solution

by:
clayfox 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.
0
 

Author Closing Comment

by:GordonMasson
ID: 36923098
Thanks for the info.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this article, WatchGuard's Director of Security Strategy and Research Teri Radichel, takes a look at insider threats, the risk they can pose to your organization, and the best ways to defend against them.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

730 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