Search…
Resources
Related Links
userLastName
To return the last name of a user
This function will tell you the last name of the current or a given user.
This refers to the last name that is on file in the profile of the user, not the "display name".

Syntax

userLastName()
userLastName(user)

Return

string

Examples

userLastName() To return the last name of the current user.
userLastName()
Result: Rogers (if Steve Rogers from the Avengers is currently using the database)
​
userLastName(myUser) To return the last name of a given user.
Choose the field "User" and select "Steve Rogers".
userLastName(User)
Result: Rogers (if Captain America is selected in the field User)

See also

​user, which returns the current or a specific user.
​userFirstName, which returns the first name of a user.
​userFullName, which returns the full name of a user.
Last modified 6mo ago
Export as PDF
Copy link