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