Filter Non-Business Emails (Wix Forms)

Hi all,

Experiencing a bit of a very specific issue with Wix Forms that I really need help with. I need to disallow Wix email form submissions (e.g. subscribe) for certain domains, such as gmail .

Reason: we’re looking for business emails only, but are getting lots of spam entries that ruin our marketing KPI tracking. As in, literally thousands per day.

Is there a way to solve this through literally any means, custom scripting or otherwise?

Create a custom VALIDATION using regEx for example to check your E-Mail for the right e-mail-domain.

For example looping through an Array full of accepted e-mail-domains.
If not found → negative result → then → ERROR-MESSAGE, because is not a valid e-mail-address.

Since you are using Wix-Forms here are your possibilities…

https://www.wix.com/velo/reference/wix-crm/$w-wixforms/introduction

Thank you, this did point me in the right direction of handling the onWixFormSubmit event.

Is there a way to return the form with an error status (e.g. highlighting the field as Error, and ideally displaying an error message) without having to manually create a pre-collapsed text element to the page?

There a different wys of how to PRESENT/SHOW an ERROR-MESSAGE on your screen.

-Console–log → interesting for DEVELOPER only
-using a LIGHBOX - → i think used in most cases (advantage → you can show all your different messages within just one lighbox).
preparing a textfield or similar elements on your page, and let them show the messages.
-also a multistatebox can be useful, or even a LIGHBOX combined with a MULTISTATEBOX.

But at least you will have first to create all the elements, before you can use them.

Wix still does not provide → DYNAMIC CREATION OF ELEMENTS BY CODE, what a pitty! :unamused: —> Maybe one day in future we will have this possibility.