Is there a way to do a check before submitting a form?

I would like to prevent duplicate entries of uniquely barcoded items. I would like the app to check to see if the barcode exists in the system before adding a record. Is there a way to do it?

You can if you create a custom form and use a relation to check for an existing barcode. Only enable the submit button if the relation is empty.