You can use managed user details to personalize different components of your interface. The code snippets below allow you to customize components to display a user's ID, email, or name.
Managed user information | Code snippet to use |
ID | {{currentUser.id}} |
{{currentUser.email}} | |
Name | {{currentUser.name}} |
The ID is a unique string of letters and numbers automatically assigned when a user is created in an interface and cannot be changed.
Text component
- From the Interfaces home, click the title of your interface.
- On the pages view, select the page that has your text component.
- Click your text component to expand the right sidebar.
- In the Content field, enter a code snippet for the field you want to display.
- Repeat this step for each field you want to use.
- Changes will be automatically saved and reflected on the preview.
The space where you place the managed user information will display the default text while editing your page.
Form component
- From the Interfaces home, click the title of your interface.
- On the pages view, select the page that has your form component.
- On the form component, click the field you want to use.
- A sidebar will open. Paste the code snippet into the Default value field.
Whenever a managed user opens the form page, the field will be pre-filled with their information. The field can still be edited by the user.
The field where you place the managed user information will appear blank while editing your page.
If your interface does not have managed users, you can personalize components using form content.