Hey!
I'm trying to use a modern combobox that displays the email of the selected user based on a variable that retrieves the email of the Project Leader from a "Person" column in my Sharepoint list.
When I use the variable "varSelectedProject.Leader.Email" directly in a label or a textbox, it shows the email correctly. However, when I insert the same variable in the combobox's DefaultSelectedItems field, it shows an error saying "it expects a value compatible with Items". My combobox properties are as follows:
DefaultSelectedItems: {Value:varSelectedProject.Leader.Email}
Items: UsuáriosdoOffice365.SearchUser({searchTerm:cbx_project_leader.SearchText})
ItemDisplayText: ThisItem.Mail
How does the app automatically select a person's email address in this modern combobox?