Require unique values for a field
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- Platform Field Administration
The system allows you to require that a field's values be unique. When this is done, the system will not let two records have the same value for that field.
Before you begin
About this task
By default, fields are created without this constraint. A field can have unique values only if there aren't already duplicate values in the database for that field. The system doesn't allow you to make a field unique while there are duplicate values in the table.
The system also doesn't allow you to add a unique index if a non-unique index already exists. In this scenario, you can't select the Unique check box on the form; instead, the system directs you to the Tables & Columns module, so you can drop the non-unique index, and then create the unique index.
Procedure
- Verify that no records in the table for the field have values, or that they all have the same value.
- Right-click the field label in the form and select Configure Dictionary.
- Configure the form to add the Unique field if it does not already appear.
- Select the Unique check box.
- Update.
Related Content
- Configuring the form layout
Administrators or users with the personalize_form role can configure the form and related list layout.