Cannot read properties of undefined

I’ve been trying relentlessly to create a user logon with custom fields. I’ve been trying to simply display the logged on user in a txtName without any luck. It’s simply returning the below message.

I’ve tried looking for solutions with no luck. Any help would be greatly appreciated!



What does your People database collection look like? Are you sure you have that information saved there? Is the user logged in?

Are you trying this in Preview? Keep in mind that the wix-users API is only partially functional in Preview.