Welcome, Guest
Username: Password:

TOPIC: Email Validation

Email Validation 3 years 3 months ago #91349

  • NkemIku
  • NkemIku's Avatar
  • Offline
  • Senior Lime
  • Posts: 41
  • Karma: 0
Hi there,

I want to apply an email validation feature to my survey, I came this link [docs.limesurvey.org/Using+regular+expres...vey#Email_Validation:] which gave me this /^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/ but I am not sure where to put it.

I tried putting it the the condition editor of my questions, but it ended up deleting the following question. What do i do?
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91351

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1673
  • Thank you received: 413
  • Karma: 106
Hello

Bye
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91352

  • NkemIku
  • NkemIku's Avatar
  • Offline
  • Senior Lime
  • Posts: 41
  • Karma: 0
Thanks Ben. I have one final question. Is there a feature to make sure that the email address entered is correct (e.g. if there is a spelling error, or if the email is no longer active)
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91353

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1673
  • Thank you received: 413
  • Karma: 106
No this feature only checks if the format is valid...
You may previously use an online email validity checker like this one (in french)
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91370

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8725
  • Thank you received: 1215
  • Karma: 360
Hello,

You can use some PHP script with ajax, but it's very difficult to be sure that a email exist and is valid.

What can be done before sending:
- Check the email have correct caracters
- Check if domain exist
- Use the smtp server in your server to check if the user exist (hardly part)

Denis
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91371

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8725
  • Thank you received: 1215
  • Karma: 360
Ben_V wrote:
You may previously use an online email validity checker like www.protimail.org
Don't work:
- check denis <AT> sondages.pro (redirected to contact <AT> sondages.pro) : broken.
- check sondages.pro <AT> belar.gsill.net (direct user at a server: must be allways good): broken.

There is no real good way to validate an email except directly test to send a email with a smtp server.

I think we can use a script like this one: www.devshed.com/c/a/PHP/Email-Address-Verification-with-PHP/5/ (but remove the check MX record, a server cab accet mail without this.)

Maybe ....
Last Edit: 3 years 3 months ago by DenisChenu. Reason: Fix quote and remove @
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91435

  • NkemIku
  • NkemIku's Avatar
  • Offline
  • Senior Lime
  • Posts: 41
  • Karma: 0
Hi Denis,

Thanks for all this information. I am sorry to say that I have no idea what you are talking about. I do not know how to write or use scripts.

This /^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/ helps to make sure that any email address entered ends with '@xxxxx.com or .ca', but if the address is not spelt correctly or invalid, it does not flag the email address as incorrect. I was wondering if there is a simple way to do this, because it is through the email address entered that I will be sending the honorarium to. Thus it is not up to me to validate the email address, it is up to the participant. I want to make this step as easy as possible for my participants when they are completing the online survey.

Thanks,
Nkem
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91466

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5929
  • Thank you received: 360
  • Karma: 258
There is no way to detect a typo. When using a regular expression, you can only check certain syntax details.

The best way to prevent typos is to use an additional email confirmation field. This blog post shows different examples:
www.limesurvey-consulting.com/how-to-val...esses-at-limesurvey/

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91573

  • monsey11
  • monsey11's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
can this be applied to one field in a "Multiple Short Text" type of question?
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91575

  • NkemIku
  • NkemIku's Avatar
  • Offline
  • Senior Lime
  • Posts: 41
  • Karma: 0
I would like to thank everyone for their help. It turns out that the version of LimeSurvey I have does not have the setting to verify the email addresses (the question validation equation slot) . I can validate it, but can not verify it. So I have just asked my participants to re-enter their email addresses, and hope that there will be no mistakes this way.
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91577

  • NkemIku
  • NkemIku's Avatar
  • Offline
  • Senior Lime
  • Posts: 41
  • Karma: 0
The administrator has disabled public write access.

Email Validation 3 years 3 months ago #91598

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5929
  • Thank you received: 360
  • Karma: 258
monsey11 wrote:
can this be applied to one field in a "Multiple Short Text" type of question?
Yes, if you use the subquestion validation. See manual and the blog post link for more information.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.233 seconds