The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1

SUJET : Use a participant's email address domain in a relevance equation

Use a participant's email address domain in a relevance equation il y a 3 mois 4 semaines #91761

  • mgib134
  • Portrait de mgib134
  • Hors ligne
  • Gold Donor
  • Messages : 10
  • Karma: 0
I'd like to be able to filter questions based off of a participant's email address domain (participants will always have an email address registered in the panel). For example, this survey will be taken by people at two companies, and certain questions will only be displayed to one company or the other.

The current relevance equation I'm using looks like this:
(strstr(TOKEN:EMAIL, '@') == "domain.com")

So, if the participant's email is ' Cette adresse email est protégée contre les robots des spammeurs, vous devez activer Javascript pour la voir. ' it will compare the string following the '@' symbol. But this doesn't seem to be working. Is this the right way to do this? Is this even possible?
L'administrateur à désactivé l'accès en écriture pour le public.

Re: Use a participant's email address domain in a relevance equation il y a 3 mois 4 semaines #91764

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 2864
  • Remerciements reçus 424
  • Karma: 245
strstr() will return a string including the splitting character (needle).

Try:
(strstr(TOKEN:EMAIL, '@') == "@domain.com")
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur à désactivé l'accès en écriture pour le public.
  • Page :
  • 1
Modérateurs: DenisChenu, ITEd
Temps de génération de la page : 0.285 secondes
Donation Image