Asking user if they want to submit due to duplicate entry

Asking user if they want to submit due to duplicate entry

Hey all,

In my application, I would like to prompt the user with a question asking whether they would like to submit an entry that has duplicates in certain fields on submit. If they still want to submit it, they can and if they don't, they can cancel out.

I have tried alert with cancel submit, but that cancels every submission, which is not what I want as I want the user to submit the entry even if there are duplicates within certain fields.