Forms: How to reject certain strings & create custom warning

UPDATED VERISON CAN BE FOUND HERE

A client has sign up forms on their website but they only want business email addresses - i.e. NOT Gmail, Hotmail, Yahoo, etc.

Here’s are the custom attributes added to the input field to reject gmail, hotmail, yahoo:

pattern = "^((?!gmail)(?!yahoo)(?!hotmail).)*$"
title = "Please input a valid business email address. (i.e. NOT Gmail, Hotmail, Yahoo, etc)"

image image

image

2 Likes

Awesome I didn’t know you could do this using the Webflow designer!

I tried this but it seems to be rejecting every type of email when using the pattern provided when I added other domains to the list, including domains I didn’t have on my pattern list?