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
Vamsi KosuriVamsi Kosuri 

Hi all, Can we put same name for "field label" and "field name"?

 I have just started my salesforce journey so I'm sorry If my doubt is too silly but please help me
Best Answer chosen by Vamsi Kosuri
Suraj Tripathi 47Suraj Tripathi 47
Hi Vamsi Kosuri,
Field Name will be unique, when you are creating a custom field in an Object then you can provide same value in Label as well as Field Name but when you create it then it will auto add  '__c '
Every Custom field Name have  '__c ' .
you can learn from this :
https://trailhead.salesforce.com/content/learn/modules/data_modeling/objects_intro
If you find your Solution then mark this as the best answer.

Thank you!
Regards,
Suraj Tripathi

 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Vamsi.

Field Name is tha name which gets generated by salesforce . It will be unique. For all the custom fields the Name will end with __c.
You can use the same name for Label and name but salesforce will append it with __c at the end.

Please find the below article for more details.

 https://help.salesforce.com/s/articleView?id=000336537&type=1

If this solution helps, please mark it as best  answer.

Thanks,
 
Suraj Tripathi 47Suraj Tripathi 47
Hi Vamsi Kosuri,
Field Name will be unique, when you are creating a custom field in an Object then you can provide same value in Label as well as Field Name but when you create it then it will auto add  '__c '
Every Custom field Name have  '__c ' .
you can learn from this :
https://trailhead.salesforce.com/content/learn/modules/data_modeling/objects_intro
If you find your Solution then mark this as the best answer.

Thank you!
Regards,
Suraj Tripathi

 
This was selected as the best answer