Copy link to clipboard
Copied
Hello, I am using spry widgets for various elements of a form that I ask visitors to my website to fill out. One field is their e-mail address. I would like to know if there is a way to restrict the entry of certain domains as e-mail addresses? For example, I want to prohibit the entry of any e-mail address having gmail in the name.
Any help would be greatly appreciated.
Tim
Copy link to clipboard
Copied
You can't do it out of the box with the Spry widgets, although you might get some suggestions on how to do it if you post a question in the Spry forum, where several JavaScript wizards tend to hang out.
However, it's important to realize that Spry (and any other JavaScript validation) can easily be evaded by turning off JavaScript in the browser. The only way to prevent the submission of certain domains is by doing validation/filtering on the server side.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now