Default form user name?

Does anyone know if it’s possible to default the “Name” field of a form with the current user? I’ve been looking the wix-users in the API and see how I can get the user information, but I’m not sure how to assign a value to a field on the form.

Use case: Contact Us form
When form displays, populate the form’s name and email fields with the current user’s name and email address from their profile.

Thanks!

Jeff, the Wix User object only supports email address, not user name. So, if you want that too, you will have to piggy bag your own user collection onto the Wix User collection, usually with the email address used as the key between the two. Then you can read from this collection and prompt the values that you mention.
There is an article about creating your own user collection here on Wix Code. Does that make sense?

Yes, thanks.