Skip to main content
Solved

Allowing Duplicate Entries

  • May 30, 2025
  • 0 replies
  • 305 views

Forum|alt.badge.img+4

Hi,

What is the proper work around to allow duplicate entries with a field being marked as "Must Be Unique"? Thanks!

 

Best answer by MarkShnierYou

An easy way to do this is to make a formula field like this below along with a checkbox field called [Allow Duplicates?]

IF(not [Allow Duplicates?], [My almost Unique field])

So in your almost unique field, you do not mark that as Unique, but the formula field will be marked as Unique.   The one value that is allowed to be duplicated in a unique field is null,  so the above formula will be null if  [Allow Duplicates?] is checked. 

Forum|alt.badge.img+6
  • Registered
  • May 31, 2025

.


MarkShnierYou
Forum|alt.badge.img+24

An easy way to do this is to make a formula field like this below along with a checkbox field called [Allow Duplicates?]

IF(not [Allow Duplicates?], [My almost Unique field])

So in your almost unique field, you do not mark that as Unique, but the formula field will be marked as Unique.   The one value that is allowed to be duplicated in a unique field is null,  so the above formula will be null if  [Allow Duplicates?] is checked. 


Forum|alt.badge.img+4
  • Author
  • Registered
  • June 5, 2025

Mark,

I have a follow up question for you. I've implemented the checkbox (Blank / TBD DPC) to allow duplicate entries. There are situations when our users do not know the DPC. So, we allowed duplicate records with a blank DPC. On our form, our checkbox (Blank / TBD DPC) is checked by default. The check goes away once an entry is made in the DPC field. How can I reenable the check after an entry is erased in the DPC field? I know users can click the checkbox. However, I prefer to create a form rule or formula. Thanks!