Jump to content
Server Maintenance This Week. ×

Field Validation Unique with 1 exception


This topic is 6611 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I am trying to setup a field where each value is unique except for one instance.

Example A number field where each record would have a unique entry except when entering the number 10 which could have multiple records.

Link to comment
Share on other sites

You could set up another field with auto-entered calculation (replacing existing value) =

Case ( Numberfield ≠ 10 ; Numberfield )

and validate for unique values in the new field.

However:

1. Validation will occur only when the record is committed;

2. The very need for this suggest there's something wrong with your data structure.

Link to comment
Share on other sites

This topic is 6611 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.