I'm fairly new to Power Apps and learning as I build.
I have a form that users will submit periodically. The project information will stay the same while the reporting fields will change. After the first time they submit the form for a project, I want the project information to auto-populate. I'm using a SharePoint list as my data source. So far, I have been able to use the LookUp function in the Default property of the text, date, and choice fields and haven't had any issues. As an example, I set the Default property of the Title field to:
LookUp(DataSource, ProjectCode=DataCardValue2.Text, Title).
I'd like to have the form also auto-populate a person field based on the project code text field (for example, when a project code is entered, I want the project manager to auto-populate), but I get the following error when I attempt the same syntax as above:
"Expected Record value.
The property on this control expects Record values. The rule produces Table values which are incompatible."
Are there extra steps I need to take to auto-populate a person field like this? Is it possible to auto-populate it based on a text field?