+ 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}';