Text field to display field based off another field - InfoPath Dev
in

InfoPath Dev

Text field to display field based off another field

Last post 03-27-2008 04:21 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-27-2008 03:07 PM

    Text field to display field based off another field

    Hi,

       I have a SharePoint list that contains 4 columns. ManagerID, ManagerName, AdminID, and AdminName. The manager field in Info path displays a list of ManagerName, but will enter the ManagerID as the Value. That part works fine. The field in InfoPath below the managerName is a text box called AdminName which I would like auto populated based on the selection of the Manager. Does anyone know what the formula would be in the text box to return the Admin name?

     

  • 03-27-2008 04:21 PM In reply to

    Re: Text field to display field based off another field

    You would use a rule on the drop-down list that sets the AdminName. It gets the name from the secondary DOM that pulls its data from your SP list. To get the right name, you need to filter the list based on ManagerID = the selected value in the manager field.

    You can use the InfoPath UI to do all of this, but pseudo-code-wise it would look something like:

    Set field:AdminName = SpList/AdminName[../ManagerID = field:Manager]

     

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