function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AltranAltran 

How to get user info

Hi,

 

How can I get user info (username, first and last name) in a javascript detail button?

 

 

Thanks,

Ana

Laxman RaoLaxman Rao

On Custom Button detail page, Select Field Type  as User and select the fields you want

Eg: var name = '{!User.FirstName}';