- Posts: 23
- Thank you received: 1
Email Validation Rule to block a TLD?
- wirecreative
- Topic Author
- Offline
- Junior Member
-
Less
More
4 years 1 week 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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 1 week 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
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
-
Less
More
- Posts: 23
- Thank you received: 1
4 years 5 days 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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
4 years 5 days 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
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.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.