Hi,
I'm currently designing an app for a business case. One of the requirements is that it has to save employee names, even after they left the organisation and their account is purged from the Active Directory. The app works on a SharePoint List.
I think I can manage this by adding two Data value fields in my app (see picture):
1st field: person/group selector
2nd field: single line of text
Where the 2nd field retains the string of the DisplayName indefinitely, even when the user profile is deleted from AD.

What I want to achieve is extracting the Display Name out of the selected item in the 1st field, and copying it, as a string, into the 2nd field.
I have been able to solve this issue with single values before, but right now I either get the 'expects text, but instead it receives a table'-error, or I managed to copy the Display Name onto the 2nd field, but it didn't work in the user experience as I can't figure out how to run the copy-function after selecting the employee. This causes the function to run at loading of the screen, not after selecting the employee in the 1st column.
Has anyone encountered this, or knows how to delay the function running until I have selected an employee?