Unique Fields


I want to know how it is the best away to prevent duplicates. Or indicate that one field have to be unique.


In what context do you mean?

There is a functionality that finds duplicates and usually this is by email address.

Do you require a unique auto increment field?

For example, how did I ensure that I haven’t two identical accounts or Leads?

There is no live validation on creating the record. You can check for duplicates after the record has been created - this is via the Action buttons on the DetailView of the record (the Edit button area)

You will probably have to write a piece of code that will check on the particular record if you wish to have it whilst the user is typing or have typed in a value on the edit view.

Can you give a example how to create this piece of code?

I have no idea. Thanks