unique / duplicate value if condition - how to?

unique / duplicate value if condition - how to?

I have a custom field in the customer menu what has a limitation to unique values. Now i need to link that unique value to another field.

Field 1: has 3 options to select from
Field 2 (unique value): can only have one unique value for each option from Field 1

Hope this query is clear, any ideas?