Mastering SharePoint

InfoPath 2007: Display User on a Form

I have finally begun more development in InfoPath 2007.  Instead of holding all of my work close and personal, I thought I would share it.  Adding the current user on a form is a very common need; and quite simple to solve using InfoPath 2007 funcions.

The easiest way to accomplish this is to place a Text Box control on your form; this can be bound to data or not, it doesn't matter.  Once you have done this, double-click the control to open the Text Box Properties.  Click the formula button next to the Default Value field.  In the formula dialog, type userName() and click the OK button.  Click the OK button on the Text Box Properties dialog and you are good to go.

Now that you have preset this Text Box using a function, you may also wish to make it read-only.


Posted Aug 18 2008, 04:22 PM by Bob Mixon

Comments

NancyCentury wrote re: InfoPath 2007: Display User on a Form
on Tue, Aug 19 2008 7:08 AM

Excellent tip! I am also diving into InfoPath these days and would welcome more like ths!

Links (8/20/2008) « Steve Pietrek - Everything SharePoint wrote Links (8/20/2008) « Steve Pietrek - Everything SharePoint
on Wed, Aug 20 2008 7:47 PM

Pingback from  Links (8/20/2008) « Steve Pietrek - Everything SharePoint

Copyright (c) 2008 Mixon Consulting, Inc.
Powered by Community Server (Commercial Edition), by Telligent Systems