Issue w/ display of Person field - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Issue w/ display of Person field

Last post 12-09-2024 10:40 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-09-2024 08:43 AM

    Issue w/ display of Person field

    I have files in an XML Forms library which were created by an InfoPath form, which contains a Person field. That field doesn't show up in the Library definition, but the entered value is displayed when a file is re-opened, and I can see the information contained in the file's contents. If I open a file up using a FormsViewer form (derived from that InfoPath form), the person field isn't populated. What can I do to get this field's contents to display?
  • 12-09-2024 09:08 AM In reply to

    Re: Issue w/ display of Person field

    Interesting. If you look at the file in a text editor, what fields for the person picker are populated? i.e. is there information for the account ID as well as the display name?
    Hilary Stoupa

  • 12-09-2024 09:51 AM In reply to

    Re: Issue w/ display of Person field

    DisplayName & AccountType are populated; AccountId is not.
  • 12-09-2024 10:40 AM In reply to

    Re: Issue w/ display of Person field

    Thanks. I ran a quick test and can see that FormsViewer does not display the person as selected if either DisplayName or AccountId are blank. One thing you might do is just leverage a little UI work-around. First, put the person picker in a section. Then, hide the section if Display Name is not blank. Next, add another section - hide this one if Display Name IS blank. In this section, put a calculated value showing the display name and a little "x" button users can use to replace the selected person. You may wish to check your form logic and see if you have some logic that is just setting the Display Name field - perhaps it could be modified to also set the account Id going forward. I've attached a simple sample - download the linked file, right click and select design to see the design I'm suggesting. I've got a repeating table on there for the person values to be able to test with the account Id blank. :)
    Hilary Stoupa

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