|
I have a form that creates new records in a database. Two of the submitted fields must be unique in the DB. Duplicate submissions get a server error message and prevent the user from accessing the new record in the next DB form page.
I'm looking for a way to prevent duplicate submissions in a way that will run only if the form validation Javascript returns true. It shouldn't block submission if it fails validation, so errors can be corrected and re-submitted.
It should also allow the user to over-ride prevention of duplicates by clicking the re-set button, so the form can be used again with a new set of data to create another unique record.
I tried various uses of enable and disable of the submit button but haven't been able to get this combination to work.
Any and all ideas gratefully received!
|
|
|
|
|
|
|
|