When you submit a lightning-record-edit-form it checks the lightning-input fields against any Validation Rules on those fields and displays the corresponding error message if the rule isn't met, which is great. It then saves that record. What I would like to do is perform the validation check and show the error message BUT - if it passes the error check, do NOT save the record. Does anyone know if this is possible?
I'm using a custom submit handler but if I prevent the default via
event.preventDefault(); it doesn't perform the validation. So the
submit action has to take place