Relevance Equation and Tokens/Answers

More
2 years 11 months ago #116055 by exlibris139
exlibris139 created the topic: Relevance Equation and Tokens/Answers
I'm trying to display a set of questions to people who input a token or an answer (whichever is easier) that begins with a certain letter. I can't only have them enter the letter, as it's a giveaway that there's a variance in what people are seeing with the survey. So they may be told to enter A123 or B123 depending on their group, and As should see different questions to Bs.

I've been trying to use wildcards with relevance equations on the questions, but I can't seem to make it work. Any suggestions?

Please Log in to join the conversation.

More
2 years 11 months ago #116066 by tpartner
tpartner replied the topic: Relevance Equation and Tokens/Answers
Relevance using a text question (code "q1"), first character "B":
substr(q1, 0, 1) == 'B'

Relevance using a token, first character "B":
substr(TOKEN:TOKEN, 0, 1) == 'B'

manual.limesurvey.org/Expression_Manager#Access_to_Functions


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 10 months ago #116074 by exlibris139
exlibris139 replied the topic: Relevance Equation and Tokens/Answers
That's perfect tpartner, thanks for that!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!