Avoid form submission on error

I managed having unique field values like described in this post:

Custom repeater validation

But the form is still submitted. Is there a way to avoid form submission when there was an error in one of the Repeater fields?
Was this page helpful?