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
rockForcerockForce 

Unique Value

Hello

 

I have created a custom object which has a standard field First Name (name) with the datatype Text and i want to make this field to be unique and the value entered in this field should not be repeat. Can anyone tell how to achieve this functionality.

 

Thanks

Rock

SAPOCSAPOC

The Standard feild Name that you are talking is Record Name  which is the name of the object that is displayed on Page Layouts list views,Related lists,Lookup Filters and Search results.It is a mandatory field and cannot be removed from pagelayout .It can not be made unique but can change type to text or Auto-Number.

 

You have to define custom field of Text datatype and make it unique.