Skip to main content
Participant
September 14, 2009
Question

Filter e-mail address

  • September 14, 2009
  • 1 reply
  • 458 views

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

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
September 14, 2009

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.