Welcome, Guest
Username: Password: Remember me

TOPIC: email verification program

email verification program 1 year 5 months ago #92558

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.

email verification program 1 year 5 months ago #92585

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
The topic has been locked.
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image