I'm using InfoPath 2007. I have a footer in my form that prints the date and time and userName(), but only the date and time are printing on the printed version. I am setting a field called txtCurrentUser with the function userName() in the forms Open behavior rules. I clear the field first, then populate with current user. My footer looks like below:
Printed: &d &t by &{/my:myFields/my:Admin/my:Filename/my:txtCurrentUser&}
The correct user is displaying in preview mode but is not printing on production form. I have disabled all form open and save features except Autosave because I am printing the form from a custom button from code behind. This form has no qrules or dbxl.
How can I get the field value to appear?