email verification

Mehr
4 Jahre 7 Monate her #95135 von kachne
kachne erstellte das Thema 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})$

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.

Dateianhang:

Dateiname: limesurvey...n_24.lsq
Dateigröße:4 KB
Anhang:

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #95147 von tpartner
tpartner antwortete auf das Thema: 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:
/^(\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.

Dateianhang:

Dateiname: limesurvey...2315.lss
Dateigröße:14 KB

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Anhang:
Folgende Benutzer bedankten sich: kachne, danika

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #95148 von kachne
kachne antwortete auf das Thema: email verification
Thanks a lot! That solved both issues.
Kat.

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha