First off, I'm very new to InfoPath and greatly appreciate any guidance!
I am working on a form bound to data in two SharePoint lists. The purpose of the form is to collect deliverables required for a project. There are two lists involved: Projects and Deliverables. The Deliverables list is the primary data source, and the Projects list is the secondary data source. The form has a drop-down control which lists all projects from the ProjectName field (which works just fine). When the user selects a project from the drop-down, I want to prefill another field (ContractID) from the Projects list into a control to store it as a column in the Deliverables list.
To do this, I'm using a rule attached to the ProjectName drop-down. It is activated when the value in this control changes. The action is "set a field's value", and the field I'm setting is the ContractID in the Deliverables list. When I insert "test" as the value of the field, it works perfectly in preview mode.
However, when I change the hard-coded "test" value to a formula, it fails to work. Based on web research, it looks like I should be applying a filter to the 'insert field or group' option within the formula menu. But I'm confused - what exactly am I filtering on? It seems like I should be looking for matching ProjectNames (get the respective ContractID when the ProjectNames match)... I've tried matching the ProjectName in the primary data source to the ProjectName in the secondary data source, but the target field remains empty.
Could someone provide some guidance on this?
thanks so much for your help!