I feel like I have looked everywhere for this answer, but cant seem to get it work how I like. Here is my situation.
I have a sharepoint list that looks like this
ID | Product | Price
1 | Item | 100
2 | Item2 | 300
Infopath has 2 fields (in this scenario):
Product (Drop down list)
Price (Read Only Text)
I then have an infopath form reading from that table. What I would like to happen is, the user selects the product from a drop down list, and the unit price is shown in a read-only text field.
Here is what I have tried, but ran into issues
For the drop down, set the display to Product and the value to Price, then set the default value of the Price field to Product, which brings back the value (not display). This is exactly what I want, except when I publish this to a sharepoint site, and save it, the form will create a list entry with ID | Price | Price, and never set the display name.