Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Email Validation

Email Validation 1 year 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.

Re: Email Validation 1 year 3 months ago #91351

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 936
  • Thank you received: 194
  • Karma: 62
Hello
validation.gif

Bye
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Re: Email Validation 1 year 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.

Re: Email Validation 1 year 3 months ago #91353

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 936
  • Thank you received: 194
  • Karma: 62
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Re: Email Validation 1 year 3 months ago #91370

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 5866
  • Thank you received: 718
  • Karma: 222
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.

Re: Email Validation 1 year 3 months ago #91371

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 5866
  • Thank you received: 718
  • Karma: 222
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: 1 year 3 months ago by DenisChenu. Reason: Fix quote and remove @
The administrator has disabled public write access.

Re: Email Validation 1 year 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.

Re: Email Validation 1 year 3 months ago #91466

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
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.

Re: Email Validation 1 year 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.

Re: Email Validation 1 year 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.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.150 seconds
Donation Image