Welcome to the LimeSurvey Community Forum

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

First ask for e-mail then show a second question depending on the e-mail ending

  • yanvro
  • yanvro's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 4 days ago #251394 by yanvro
Hi, here is a description of what I'd like to do using LimeSurvey :
  1. First, ask for the respondent's e-mail address (so far, so good)
  2. Then show a second question only if the e-mail address ends with a specific chain of characters (e.g. only if the e-mail address ends with "@gmail.com")
I could not find how to do this, thanks for helping !

Best,

Yannick

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 4 days ago #251395 by Joffm
Hi, so far, so bad.
Why didn't you answer the questions at the beginning?

Well,
use a question of type equation ("eq1") and use some string functions
[url] manual.limesurvey.org/ExpressionScript_-...mplemented_functions [/url]
to get the domain as substring.
Then you can   use this as condition for the nextz question
eq1=='gmail.com'
 

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: yanvro

Please Log in to join the conversation.

  • yanvro
  • yanvro's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 4 days ago #251396 by yanvro
Thank you Joffm, it took me some time to figure out how to do it but I finally managed to make it work ! Sorry I did not answer the questions, I am not very familiar with this forum as this is my very first post, I sure will next time !

Thanks again,
Best,

Yannick

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 4 days ago #251397 by Joffm
Hi,

I finally managed to make it work

That's how it should work.
We give a hint to make you find out by yourself and become more familiar with the system.

BTW: Did you also get
{substr(Q1,strpos(Q1,'@')+1)}

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • yanvro
  • yanvro's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 4 weeks ago #251597 by yanvro
Hi Joffm,

At first, I had used the function {substr(email,-13)} to get the last 13 characters of the e-mail and then use it as a source for comparison for conditionnal access to some questions. But then I switched to what you have suggested above, thanks !

Best,

Yannick

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose