Textbox not updating with userName for subsequent users - InfoPath Dev
in

InfoPath Dev

Textbox not updating with userName for subsequent users

Last post 05-17-2012 09:36 AM by cjreyn73. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-16-2012 01:00 PM

    • cjreyn73
    • Not Ranked
    • Joined on 05-16-2012
    • Alpharetta, GA
    • Posts 4

    Textbox not updating with userName for subsequent users

    I have a web form that I created to track vacation for my team. Everything works "except"........There is a text field that is updated by function userName(). After the requestor submits two things happen. An email send the form to the manager and a data connection post to a List on the main site. As I understood it, the userName() function should update when this form is updated, however the managers name is not populating.

    Working with Infopath designer 2010

    Textbox name: Current_User 

    Refresh value when formula is recalculated is selected.

    Display: Read-only

    Merge settings: default

    Browser forms:

     

    Chris Reynolds
    Application Engineer
    Cox Commuincations
  • 05-16-2012 01:01 PM In reply to

    • cjreyn73
    • Not Ranked
    • Joined on 05-16-2012
    • Alpharetta, GA
    • Posts 4

    Re: Textbox not updating with userName for subsequent users

    I should have indicated that in either case (in the email or from the list) when the manager opens the form the field userName() does not update.

    Chris Reynolds
    Application Engineer
    Cox Commuincations
  • 05-16-2012 02:02 PM In reply to

    Re: Textbox not updating with userName for subsequent users

    So, I think you are saying that the username function doesn't appear to be working correctly in the browser? Does it work if the user opens the form in InfoPath filler (if they have it installed to check)?

    Hilary Stoupa

  • 05-17-2012 06:30 AM In reply to

    • cjreyn73
    • Not Ranked
    • Joined on 05-16-2012
    • Alpharetta, GA
    • Posts 4

    Re: Textbox not updating with userName for subsequent users

    Unfortunately no. It only seems to work the first time it is completed. I thought maybe it was limitation of the browser because our manager likes to use firefox but they its the same Internet Explorer version (8.0.6001.18702) for both workstations.

     

    Chris Reynolds
    Application Engineer
    Cox Commuincations
  • 05-17-2012 06:32 AM In reply to

    Re: Textbox not updating with userName for subsequent users

    I'm not sure that default value formulas that use userName() are able to detect that the formula value has changed when someone opens the form.  As an alternative, how about adding a Form Load rule that sets the field to the value of userName()?  That should definitely do what you are looking to do.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 05-17-2012 09:36 AM In reply to

    • cjreyn73
    • Not Ranked
    • Joined on 05-16-2012
    • Alpharetta, GA
    • Posts 4

    Re: Textbox not updating with userName for subsequent users

    Ok - so I created test field and then added a Form Load rule to to set the new feild's value = username(). After a test this has worked and now the value gets updated everytime someone different opens the form.

    Thank you for the suggestion, I didn't think about moving the function from the feild to the form level.

    Chris Reynolds
    Application Engineer
    Cox Commuincations
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.