This may have been answered in another post, but I can't find an exact match.
I'm using a canvas powerapp, which will end up as an in-house events creation and booking system.
One of the things I need to do, is show/hide the Edit and Delete buttons from anyone UNLESS they are the Organiser (a field of type People, in a Sharepoint list).
I have created two variables using the OnStart option on the App part of the tree - varUserEmail and varUserName - these are being picked up. Using User().Email and User().FullName respectively.
BUT I cannot get the Default value for the Organiser field in the Edit form to be varUserName (so it, by default, puts the person accessing the app's details into the field of type People) - I get an error 'Expected Record value'.
Where am I going wrong? Screenshot attached.
TIA