email verification program

More
4 years 7 months ago #92558 by Panel_KOSResearch
Panel_KOSResearch created the topic: email verification program
Hello,

I want to put a special conditions to avoid the respondent to proceed to next question if the email address isn't correct or if the email address and the verification of the email don't match.

I use the following link to program it ( www.limesurvey-consulting.com/how-to-val...esses-at-limesurvey/ )

Regarding to the developpement, my question is a multiple free short text coded "emails" containing 2 subquestions (1 for the email address input, the 2nd for the validation which is also a email address) coded 1 et 2.

As the upper link recommended it, I have made two developpement in the adavnced queston setting.

- The first one is the question validation equation :
(is_empty(emails_1)
or
regexMatch('/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/',emails_1)
or
(is_empty(emails_2)
or
regexMatch('/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/',emails_2))
or
(emails_1 == emails_2))

- the second is the question validation tip :
{if(is_empty(emails_1)
or
regexMatch('/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/',emails_1),
'','Veuillez entrer une adresse mail.<br />')}
{if(is_empty(emails_2) or
regexMatch('/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/',emails_2),
'','Veuillez vérifier votre adresse mail.<br />')}
{if(!is_empty(emails_1)
and
!is_empty(emails_2)
and
emails_1 == emails_2,
'Merci, vos adresses mails correspondent',
'Veuillez entrer des adresses mails identiques')}

The messages in the tip are good but the respondents still procced to the next question even if one of the email address is wrong or if the both email address don't match.

What did I make wrong ?
Do I forgot somethig ?

Thanks for helping me
The topic has been locked.
More
4 years 7 months ago #92585 by DenisChenu
DenisChenu replied the topic: email verification program

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now