Re: Do not allow duplicates, however allow current records to be updated
@AnnetteM
First for the warning label (in your form)...create one with your duplicate warning message.
Then, set the Visible property to:
LookUp(yourData, TicketNumber = Value(yourTicketInput.Text), true) && IsBlank(ThisItem.ID)
Assuming your TicketNumber is numeric.
Set the DelayedOutput of your textinput to true to avoid this formula running on each keystroke.
Ideally, you would then change your DisplayMode property of your submit button to:
If(!yourForm.Valid || !yourForm.Unsaved || yourWarningLabel.Visible, Disabled, Edit)
Now...I am not dure what you mean about letting them submit anyway though...are you stating you want to let them submit a duplicate?