Welcome, Guest
Username: Password: Remember me

TOPIC: email verification

email verification 1 year 4 months ago #95135

  • kachne
  • kachne's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Hi all!

I need to ask respondents for their email addresses and want to verify if they did not make a typo via re-typing the address. And I am facing two issues.

I created multiple short texts question and managed to include the correct format criteria using this string: ^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$

However:

1. When the question is included in the questionnaire, the progress bar does not display and the "next" button does not work.

2. I did not manage to find a way how to verify (i.e. include a condition) that the two values (two email adresses) match in the subquestions of the multiple texts question.

I am using the latest version of LS (updated two days ago..)

I hope the description makes sense - I am attaching the question as exported from LS (it is in Czech, but I think it should not matter...:)

I would be very grateful for any hints on how to proceed. We plan a longitudinal study on a convenient sample and therefore need a reliable way of obtaining respondents' contact details to conduct the follow-ups.

Thanks a lot for your time end efforts!
Have a nice rest of the weekend.
Katerina.

File Attachment:

File Name: limesurvey_question_24.lsq
File Size: 4 KB
The administrator has disabled public write access.

email verification 1 year 3 months ago #95147

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4117
  • Thank you received: 760
  • Karma: 346
The problem with the progress bar indicates a JavaScript error possibly caused by your question code or question validation equation.

So, given a question code "q1" and sub-question codes "SQ001" and "SQ002":

The validation regex is:
/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/

The question validation equation is:
q1_SQ001 == q1_SQ002

A question validation tip that only shows errors when both inputs have values would be:
{if(q1_SQ001 != '' && q1_SQ002 != '', 'The email addresses must match.', '')}

Here's a sample survey.

File Attachment:

File Name: limesurvey_survey_742315.lss
File Size: 14 KB
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: kachne, danika

email verification 1 year 3 months ago #95148

  • kachne
  • kachne's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Thanks a lot! That solved both issues.
Kat.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.503 seconds
Donation Image