I have a user lookup field which I want to be filled with the name of the currently logged-in user upon opening the record. Is there any way to do this?
-
Chris, what you mean by saying 'opening the record', any select operation or display on UI?– Marcin Sz.Apr 6, 2017 at 17:35
-
Is this a visualforce page or standard page layout?– Amit JainApr 6, 2017 at 17:37
-
See this might help salesforce.stackexchange.com/questions/17707/…– Salesforce StepsApr 6, 2017 at 17:42
1 Answer
Try to do the following steps:
Create a formula TEXT field and paste below formula:
HYPERLINK('/'+$User.Id,$User.FirstName+' '+$User.LastName)
Add the custom field in the page layout.