- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Email Validation
- NkemIku
- Topic Author
- Offline
- New Member
Less
More
11 years 3 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?
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
11 years 3 months ago #91351
by Ben_V
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)
Replied by Ben_V on topic Email Validation
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
11 years 3 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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
11 years 3 months ago #91353
by Ben_V
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)
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)
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
11 years 3 months ago #91370
by DenisChenu
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.
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
11 years 3 months ago - 11 years 3 months ago #91371
by DenisChenu
- 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.
Replied by DenisChenu on topic Email Validation
Don't work:Ben_V wrote: You may previously use an online email validity checker like www.protimail.org
- 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 3 months ago by DenisChenu. Reason: Fix quote and remove @
The topic has been locked.
- NkemIku
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
11 years 3 months 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
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
- Offline
- Official LimeSurvey Partner
11 years 3 months ago #91466
by Mazi
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
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/
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.
- monsey11
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
11 years 3 months 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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
11 years 3 months 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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
11 years 3 months ago #91577
by NkemIku
Replied by NkemIku on topic Email Validation
docs.limesurvey.org/Advanced+question+settings#em_validation_q
. then go to this tab em_validation_q
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
11 years 3 months ago #91598
by Mazi
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
Replied by Mazi on topic Email Validation
Yes, if you use the subquestion validation. See manual and the blog post link for more information.monsey11 wrote: can this be applied to one field in a "Multiple Short Text" type of question?
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.