Welcome to the LimeSurvey Community Forum

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

Problem with condition ((TOKEN:ATTRIBUTE_1 == "yes"))

  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago - 9 years 4 months ago #114015 by sf23103
I set up a new attribute for my token fields. The field either says "yes" or "no" and is a constant.

For a group of questions, I created a relevance: ((TOKEN:ATTRIBUTE_1 == "yes"))
The group of questions are not showing up for any of the tokens, including the ones that have the attribute "yes". I understand this may be case sensitive and both are lower case.

I also created relevance for individual questions. That didn't work either. When I deleted the relevance and tried to re-create it for the individual questions, the "token" tab is greyed out and I cannot re-create it.

Any ideas??

EDIT: I see another post that this may be an issue with 2.05. This is a new survey created in Version 2.05+ Build 141020

Thanks,
Alex
Last edit: 9 years 4 months ago by sf23103.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114018 by holch
Well, this here is not a condition but a relevance equation, or am I wrong?

Why do you open and close two "((" ?

How does your question page look like? Is the relevance equation highlighted somehow?

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.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114019 by sf23103
You're totally right it's relevance not condition.

I copied that from what it originally created when I was able to get it to make the condition based on my selections. I'll give it a try without the double (())
The topic has been locked.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114020 by sf23103
tried it without the double (()) and it's still a no-go. Doesn't show the question group for tokens with attribute_1 == "yes"
The topic has been locked.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114021 by sf23103
Below is a screen shot of the greyed out token tab.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114024 by holch
Seems like LS doesn't recognise that there are token fields. Did you create tokens and attributes?

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.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114029 by sf23103
Yep. Created tokens to test with attributes to test it, and that's when I found it wasn't showing those questions. I went back to edit the relevance and that's when it started acting funny and not letting me edit the token tab of the relevance screen.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114030 by tpartner
Does it work if you enter the condition directly into the Relevance field instead of using the conditions designer tool?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114033 by sf23103
I tried deleting all of them through the conditions designer tool, and then I manually entered it into the relevance field. Still does not work. With a relevance (TOKEN:ATTRIBUTE_1 == "yes") the question never shows up, whether or not "yes" is in the token attribute_1 field.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114043 by DenisChenu
Your survey is NOT ANONYMOUS ?

If not : you can not use TOKEN attribute

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • sf23103
  • sf23103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #114055 by sf23103
It is an anonymous survey.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114057 by tpartner
Well that explains it then. As Denis says, you have no access to token data in anonymous surveys.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose