Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.3.9+220411
Own server or LimeSurvey hosting: shared hosting provider / community edition
Survey theme/template: Fruity Theme
==================
Hi I have an issue of email-validation script I found, I think its few years old but anyway... I am newbe to making surveys so bare with me. It might not be a new topic for all of you that got a hang of it
I have simply two Multiple short text (Type: Q) to comfirm an input of emailaddress, but it will not confirm its correct. I need a little assistance to make it work, I dont understand whats wrong..
RegExp:
Sub-question validation equation:
Code:
(!is_empty(this.NAOK =='SQ001') AND regexMatch('/^.?@.?\..+$/',this.NAOK =='SQ001') AND (!is_empty(this.NAOK =='SQ002') or regexMatch('/^.?@.?\..+$/',this.NAOK =='SQ002')) AND (this.NAOK =='SQ001' == this.NAOK =='SQ002'))
Sub-question validation tip:
Code:
{if(is_empty(this.NAOK =='SQ001') or regexMatch('/^.+?@.+?\..+$/',this.NAOK =='SQ001'),'','Please enter a valid email address.')}
{if(is_empty(this.NAOK =='SQ002') or regexMatch('/^.+?@.+?\..+$/',this.NAOK =='SQ002'),'','Please verify the email address.')} {if(!is_empty(this.NAOK =='SQ001') AND !is_empty(this.NAOK =='SQ002') AND (this.NAOK =='SQ001' == this.NAOK =='SQ002'), 'Email addresses match!', 'Email addresses do NOT match!')}
Thanks in advanced!