- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error on conditions
- sysco
- Topic Author
- Offline
- New Member
Less
More
8 months 1 week 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
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.
- sysco
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 months 1 week ago - 8 months 1 week 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: 8 months 1 week ago by sysco.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
8 months 1 week ago #246255
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11683
- Thank you received: 2748
8 months 1 week ago #246256
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Error on conditions
manual.limesurvey.org/Questions_-_introduction
Not sure why it works in your 5.2.9+220110, but it actually shouldn't.
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.
- sysco
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 months 1 week 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
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.