footer is not showing a field value - InfoPath Dev
in

InfoPath Dev

footer is not showing a field value

Last post 06-24-2014 12:27 PM by Doreen. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-23-2014 09:32 AM

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    footer is not showing a field value

    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?

  • 06-23-2014 04:23 PM In reply to

    Re: footer is not showing a field value

    I had not remembered that a form field could be added to a footer, but I see that it can (http://office.microsoft.com/en-us/infopath-help/insert-data-from-the-form-in-a-header-or-footer-HA010024034.aspx)

    If you print via the InfoPath File menu, does the footer print correctly?

    Hilary Stoupa

  • 06-24-2014 12:27 PM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: footer is not showing a field value

    Thank you Hilary - I actually read that same post when I had the problem. I ended up removing the footer on all my print view pages (about 8 of them), saving them with no footer then going back into each one and manually adding the parameters back in.  the textbox field now prints the current user.

    I think I might have copied and pasted the footer in all views before and InfoPath balks at that for form fields!

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.