Stop payment process if there any error in forms

Hello :wave:,

I created an order portraits form and I make a code that when the user submit the form the payment method appear.

Everything is fine here :+1:.

The problem is when there is an error (for example the user forgot to type a required input) the payment method still appear when the user click submit although the form didn’t submitted yet and gives an error.

How can I prevent appearing the payment method if the form give an error.

Thanks for advance :heart:

You do not tell us, if you are doing all this with CODE or with the given options of Wix-Editor?


You will find needed options when you click onto the INPUT-FIELD.
There you will be able to set the needed settings like VALIDATION and the option, that the field has to be filled first, before submitting.