You need to sign in to do that
Don't have an account?

Fill custom object text field with currently logged in user name
Hi,
I have a custom object. I have have user email field. When I go to the details of the custom objects record, I want to fill the "User Email" textbox with the email of currently logged in user. (only if the records "User Email" value is empty).
How can I do this?
Thanks in advance.
I have a custom object. I have have user email field. When I go to the details of the custom objects record, I want to fill the "User Email" textbox with the email of currently logged in user. (only if the records "User Email" value is empty).
How can I do this?
Thanks in advance.
you can achive the auto population of a field by using a formular field as described here:
https://success.salesforce.com/answers?id=90630000000gsHQAAY
It should be no big deal to auto-populate a field with the current user information. Formular Fields are what you need.
Best Regards,
Robert
http://www.mind-force.de
you can use the global variable $User.Email in the formula field. Before this, check whether it's empty.
Regards
Robert
The easy way is that go to text field and click on edit, you can see deafult value option in the field edit page.
put like " $User.Email " in the formula editor box. so it will display logged in user email address in the text field by default.
you can user formulas as well but the formula field is not display on the edit page. you can see the value only after save the record.
Regards,
Madhu