Solved

InfoPath User Name

Posted on 2011-09-20
4
322 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
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:clayfox
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
Thanks for the info.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now