Email Validation Rule to block a TLD?

  • wirecreative
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 7 months ago #146234 by wirecreative
Email Validation Rule to block a TLD? was created by wirecreative
Hi, is it possible to write a validation rule for the email field that would disallow domains with a specific TLD (like ".edu")?

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #146267 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Validation Rule to block a TLD?
Hello

Yes. But I think the easiest way would be using Joomla built-in feature. Go to Users -> Manage, click on Options button in the toolbar, look at Email Domains Options tab and setup domains restriction from there. It should address your concern

Sorry for lately response. I thought I replied you yesterday, but look like I forgot to press Submit

Tuan

Please Log in or Create an account to join the conversation.

  • wirecreative
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 7 months ago #146284 by wirecreative
Replied by wirecreative on topic Email Validation Rule to block a TLD?
If it' possible we would like to limit this restriction to one membership type, and have have another membership with no such restrictions. This would require having different email fields assigned to different memberships, which was my next question. Thanks.

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #146290 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Validation Rule to block a TLD?
Hello

In this case, custom code is needed. You will need to develop custom validation as described at membershipprodoc.joomservices.com/basic-...custom-error-message and use it for the email field

Tuan

Please Log in or Create an account to join the conversation.