Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Email Validation

  • NkemIku
  • NkemIku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #91349 by NkemIku
Email Validation was created by NkemIku
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 topic has been locked.
More
11 years 2 months ago #91351 by Ben_V
Replied by Ben_V on topic Email Validation
Hello

Bye

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Attachments:
The topic has been locked.
  • NkemIku
  • NkemIku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #91352 by NkemIku
Replied by NkemIku on topic Email Validation
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 topic has been locked.
More
11 years 2 months ago #91353 by Ben_V
Replied by Ben_V on topic Email Validation
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
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago #91370 by DenisChenu
Replied by DenisChenu on topic Email Validation
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 1 month ago - 11 years 1 month ago #91371 by DenisChenu
Replied by DenisChenu on topic Email Validation

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 ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 11 years 1 month ago by DenisChenu. Reason: Fix quote and remove @
The topic has been locked.
  • NkemIku
  • NkemIku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #91435 by NkemIku
Replied by NkemIku on topic Email Validation
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 topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 1 month ago #91466 by Mazi
Replied by Mazi on topic Email Validation
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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
11 years 1 month ago #91573 by monsey11
Replied by monsey11 on topic Email Validation
can this be applied to one field in a "Multiple Short Text" type of question?
The topic has been locked.
  • NkemIku
  • NkemIku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #91575 by NkemIku
Replied by NkemIku on topic Email Validation
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 topic has been locked.
  • NkemIku
  • NkemIku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #91577 by NkemIku
Replied by NkemIku on topic Email Validation
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 1 month ago #91598 by Mazi
Replied by Mazi on topic Email Validation

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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose