Check out the LimeSurvey source code on GitHub!

Expression manager always shows syntax errors

More
2 years 11 months ago - 2 years 11 months ago #106421 by terminus
I am running Limesurvey 2.00+ Build 131206, and I want to add simple conditions like "show question 5 if question 4 was answered yes". Even such simple conditions are failing, and the questions are never shown. See the attachment, which indicates syntax errors with the expression ((4.NAOK"Y")). When I edit the question it appears as ((273243X1X4.NAOK "Y")).

The errors indicated are "Expected expressions separated by commas" and "Extra token found after expressions". It seems that the problem is that the == operator is missing, and has been replaced by spaces. But note that I didn't compose the expression manually, I just used added the condition using the web interface. So is this a bug (perhaps one fixed since 131206)?
Attachments:
Last Edit: 2 years 11 months ago by terminus.

Please Log in to join the conversation.

More
2 years 11 months ago #106425 by DenisChenu
Did you try to remove the condition and add it again ?

1st time i see this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
2 years 11 months ago #106426 by terminus
Yes I tried that. The only workaround that worked was adding the condition, then editing the question to copy the erroneous generated expression (eg. 273243X1X4.NAOK "Y"), then deleting the condition, then adding a manually-edited version of the expression (eg. 273243X1X4.NAOK=="Y"). Works, but is annoying and time-consuming.

Please Log in to join the conversation.

More
2 years 11 months ago #106427 by mdekker
What is your question code?

---
Menno Dekker

Please Log in to join the conversation.

More
2 years 11 months ago #106428 by terminus
Just sequential numbers, like "1".

Please Log in to join the conversation.

More
2 years 11 months ago #106429 by mdekker
That is not supported. If you change it to q1 (so prefix with a letter) all should work fine.

---
Menno Dekker

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form