Posted: October 29, 2015 at 9:39 pm
|
Is there any possibility that could limit the email address? E.g. only allow/disallow email address with certain keyword like “hotmail.com” Thanks! |
Hi Yipeng, There isn’t a built-in option that can do that but we may be able to find a jQuery solution that could help. Could you share more information on why you are wanting to restrict a certain email domain? — |
|
|
I would like to restrict QQ.COM since our transactional email provider Mandrill is unable to deliver any mail to QQ.COM due to QQ’s strict email policy though Mandrill says they have delivered the mail. Would like to see this in two approach, one is to restrict like I just mentioned above, another is to allow registration only from certain domain like our organization domain. Thanks! |
Hi, I found an example that may work. How about something like this? http://www.designchemical.com/blog/index.php/jquery/email-validation-using-jquery/ Demo page: http://www.designchemical.com/lab/jquery/demo/jquery_email_validation.htm — |
|
|
lookslike his would work. What file should I put these in? |
Hi, could you try this out? https://gist.github.com/lorenzocaum/999801967e0157803004 If your event-registration page has a different slug, then change event-registration to your actual page slug in the function. You can try it out in your child theme’s functions.php file or through a site specific plugin. — |
|
|
This is the code I put in in my site plugin but it did not work |
Hi, could you post your ticketing page so I can take a look? The code is doing a partial match for certain form elements so if yours are different then it will need to be revised. Thanks — |
|
|
Hello – please visit https://www.cssalondon.org/ticketing/?ee=1 Thanks so much!! |
Hi, could you create another test event and share the link? The one that you provided is closed. Specifically, I’d like to see the registration form on the page so I can troubleshoot the jQuery to get that working. Thanks — |
|
|
Hello Lorenzo I have reenabled that event. Please visit https://www.cssalondon.org/ticketing/?ee=1 again:) Yipeng |
Hi, I made a few changes and verified that it works: https://gist.github.com/lorenzocaum/999801967e0157803004 The main change is changing: input[id$=”event_form_field-“] …to this: input[id^=”event_form_field-“] — |
|
|
Hello Lorenzo, What happens then is after I input my email address I am unable to submit the registration. Please take a look at https://www.cssalondon.org/ticketing/?ee=1 again. |
See the updated code: https://gist.github.com/lorenzocaum/999801967e0157803004 I removed the confirmation when a valid email is used. — |
|
|
Hello Lorenzo This code works! Thanks so much:) You may close this thread. |
The support post ‘EE3 – Limit Registrant's Email Address’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.