Display User Information in Form

Question: “If I want to assign Display Name of the user instead of login ID, what is the formula I should use?”

Answer: You may use object: user to display the information of current user.


Information in user:

  • UserName
  • DisplayName
  • FullName
  • FirstName
  • LastName
  • PhoneNumber
  • ProfilePictureUrl
  • Email

eg:
user.DisplayName, user.FullName, user.Email




Method 1 - In Form:
Use user in a text field under the form.

eg: sample to display user’s display name

Form design:
image
Field’s formula: user.DisplayName
image

Result:
image




Method 2 - In Script:
You may also use it in scripting

eg: In Backend Script
Write the script below:

classificationData[‘Name’] = user.DisplayName

Set user’s display name in field:‘Name’

Backend Script:

Result:
image

1 Like