Team Forms automatically tracks the user who submits each response, however in some situations it may be helpful to display the users details inside the form itself. There are several way to achieve this which are outlined in this article
The easiest way to display the current user in your form is using the user component and configuring the default value to the current user. This can be done by following the steps below:
Drag and drop a user component into your form
Disable the component to prevent modifying it value
under the data tab set the default value to "current user"
TF_USER() which will return the users details including there name, email and id. Lets use this function in the example below to populate a text field with the users email.
Drag an drop a text field into your form
To populate email:
value = TF_USER().email
To populate the name:
value = TF_USER().name
In the display tab scroll down and check the "disable" option to prevent users from changing the value.