I built a form.
I want that if there is a field that is filled out wrong
The customer will receive an error message next to the sign up button and not only will the field be red
How do you do that?
thank you
I built a form.
I want that if there is a field that is filled out wrong
The customer will receive an error message next to the sign up button and not only will the field be red
How do you do that?
thank you
Have you used Wix Forms as if you have, they have their own Wix Support pages that you can check.
https://support.wix.com/en/ascend-by-wix/wix-forms
As for if you have done it through your own user input form using code, then you can add features like custom validation or an error message as well as simply ticking the required box in the user input element settings.
You can do a simple error message in your code like this
//rest of code above//
} )
.catch( (err) => {
console.log(err);
$w("#errorMessage").expand();
// Use a regular text element set to 'collapse on load' from the Properties Panel.
} );
}
Or for custom validation, you can look at using Wix tutorial here.
https://www.wix.com/corvid/example/custom-validations
Velo: About Validating User Input with Code | Help Center | Wix.com
ValidatableMixin - Velo API Reference - Wix.com
Or using regex pattern validation etc.
CMS: About Validation Settings for Input Elements | Help Center | Wix.com
Or just do a single textbox for example.
TextInput - Velo API Reference - Wix.com
TextInputMixin - Velo API Reference - Wix.com