Welcome to the LimeSurvey Community Forum

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

Error on conditions

More
7 months 4 weeks ago #246248 by sysco
Error on conditions was created by sysco
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.36+230830
Own server or LimeSurvey hosting: Own server
Survey theme/template: Fruity
==================
Hi,

On my Version 5.2.9+220110 website archive copy, for a sample question, I have the condition (( MGM-060-1.NAOK == "A1" or MGM-060-1.NAOK == "A2" or MGM-060-1.NAOK == "A3"))

On the production Version 5.6.36+230830, for the same question: ((MGM - 060 - 1.NAOK == "A1" or MGM - 060 - 1.NAOK == "A2" or MGM - 060 - 1.NAOK == "A3"))
It seems it adds space and that break the condition.

On the editor, the condition appears without those spaces:
((MGM-060-1.NAOK == "A1" or MGM-060-1.NAOK == "A2" or MGM-060-1.NAOK == "A3"))

If I go to the condition editor, delete all three conditions and add them again: same.

Is there something I can do to have my conditions to work again?

Best regards

Please Log in to join the conversation.

More
7 months 4 weeks ago - 7 months 4 weeks ago #246250 by sysco
Replied by sysco on topic Error on conditions
One more thing: PHP is the same on the two websites (5.2.9 & 5.6.36)
Last edit: 7 months 4 weeks ago by sysco.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 4 weeks ago #246255 by tpartner
Replied by tpartner on topic Error on conditions
As far as I know, you cannot have dashes in question codes.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: sysco

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 4 weeks ago #246256 by holch
Replied by holch on topic Error on conditions
manual.limesurvey.org/Questions_-_introduction

Note: The question code must be unique across the same survey, must start with a letter, and can only contain alphanumeric characters.


Not sure why it works in your 5.2.9+220110, but it actually shouldn't. :-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: sysco

Please Log in to join the conversation.

More
7 months 4 weeks ago #246258 by sysco
Replied by sysco on topic Error on conditions
Thank you @tpartner & @holch !

I suppose those dashes are there since a long time, when Lime SUrvey 2.x was used. I will check how we can cope.

Best regards

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose