Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Filter e-mail address

Community Beginner ,
Sep 13, 2009 Sep 13, 2009

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

TOPICS
Server side applications
458
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 14, 2009 Sep 14, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines