I have a situation in a form in which the current way a person is selected is to choose from a field that is set to look up anyone in the tenant. There is a need to allow a fill-in choice as the user needing to be selected hasn't been put into the tenant yet as they are a new-hire, transferring positions, etc. I found this script (inserted into the Update property) to allow the form to be saved without an invalid value.
If(Not IsBlank(DataCardValue2.Selected), DataCardValue2.Selected,{Value: DataCardValue2.SearchText, '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"})
The problem is the .searchtext is not being saved to the SharePoint column, all other fields are saving to their corresponding columns. Any ideas from the community?