Welcome to the LimeSurvey Community Forum

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

Validate email address entry

  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago #183640 by bulgin
Validate email address entry was created by bulgin
I know how to validate an email address using regex expressions. Is there a way to make the user input twice on a form so that we can make sure each time they enter, it is without errors and therefore a useable email address.

Thanks.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183648 by Joffm
Replied by Joffm on topic Validate email address entry
Do you just want to repeat the entry of the email address?
To make sure there is no typo?
Yes, of course you can do that.
Validate the second input that it is the same as the first.

Or did I misunderstand?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago #183674 by bulgin
Replied by bulgin on topic Validate email address entry
Yes, you got it exactly right! I didn't know I could do that. Thanks. I'll dig around in the interface and see if I can figure it out. Perhaps you can point me in the right direction? Thank you so much for your quick response and wishing you a great day!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183677 by holch
Replied by holch on topic Validate email address entry
Lets assume you have two text input questions, one is called Email1 the other Email2.

So you check in the first one via RegEx if it has the valid format for an email address (you can't check if the email is really valid, only if the structure is correct), and then for the second one you check in the question validation equation , if the answer in Email2 is the same as in Email1. Then in the question validation tip you'll can give a written warning.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago #183697 by bulgin
Replied by bulgin on topic Validate email address entry
Thank you Holch, looks like that would indeed be the proper solution. I will experiment. Thank you so much for the useful assistance. Have a great day!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose