Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Verification of text in freetext fields: e.g. Email addresses

  • Joffm
  • Joffm's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 months ago #200410 by Joffm
Hi,

I'm trying to implement a function into my survey where the software checks whether or not an email has some basic components like an @ or a .


So, what exactly?
If you only want to check for these details, you may use the function "strpos",
like
{strpos(Qemail,"@")}

But if you want to check if there is a valid email structure you may use a regular expression.
There is a lot of patterns for valid emails in the net,
and the validation looks like
{regexMatch('/^[pattern]$/',Qemail)}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 10 months ago by Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose