email verification

4 years 3 months ago #95135 by kachne
kachne created the topic: email verification
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})$


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.

File Attachment:

File Name: limesurvey...n_24.lsq
File Size:4 KB

Please Log in to join the conversation.

4 years 3 months ago #95147 by tpartner
tpartner replied the topic: email verification
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:

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...2315.lss
File Size:14 KB

Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: kachne, danika

Please Log in to join the conversation.

4 years 3 months ago #95148 by kachne
kachne replied the topic: email verification
Thanks a lot! That solved both issues.

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now