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
Jacob W LandisJacob W Landis 

How to make the Name field not shown up in the page

Hi, we have a custom object, we use workflow rule to set Name field to be the first name +' ' + last name. So I don't want to display this field in the page layout. But it appears name field is standard field and required. so has to be in the layout. Is there a way to avoid this?
Avidev9Avidev9
I dont think you can do it until you create your own VF 
kaustav goswamikaustav goswami
If required you can change the Name field to auto-number in stead of text and then use a custom field called name to store the name.

This custom field you can hide from the page layout and populate using the workflow.

Thanks,
Kaustav
Jacob W LandisJacob W Landis
If use auto number for name, the type is auto number, can not set text value in the workflow.
kaustav goswamikaustav goswami
Hi Jingli,

Will it be a problem if the standard name field is not set via a workflow?

The custom field called name (something like Name__c) can be used to update through the workflow.

The standard name field will contain the auto generated number. The custom name field will contain the name value that will be set through the workflow.

Are there are any specific constraints because of which a custom name field cannot be used to store the name value set through the work flow?

Thanks,
Kaustav
Matthew MorrisMatthew Morris
It sounds like an auto number might be a better choice as the primary key for the object.  Then add custom field for the name field(s) that you want to capture as suggested by Kaustav.

HTH