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

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

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

Use a participant's email address domain in a relevance equation 4 Monate 2 Tage her #91761

  • mgib134
  • mgib134s Avatar
  • OFFLINE
  • Gold Donor
  • Beiträge: 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 ' Diese E-Mail-Adresse ist gegen Spambots geschützt! JavaScript muss aktiviert werden, damit sie angezeigt werden kann. ' 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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Use a participant's email address domain in a relevance equation 4 Monate 1 Tag her #91764

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2869
  • Dank erhalten: 428
  • Karma: 246
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.277 Sekunden
Donation Image