Welcome to the LimeSurvey Community Forum

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

Issue with Relevance Equations in Survey Translation

  • rbnbchr
  • rbnbchr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 4 days ago - 3 weeks 4 days ago #266998 by rbnbchr
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 6.6.1+240806
Own server or LimeSurvey hosting:
Survey theme/template:

Dear all,

I am currently translating a survey from German to French, and I have encountered an issue with relevance equations integrated into the sub-questions of the survey. For instance, one of the equations is
  • CommercialDevicesSV_SQ001.shown == "Ja"
I translated the German terms (like "Ja") into French, but I have realized that the relevance equations cannot be adjusted to the other language. As a result, the equations are not functioning correctly in the translated version.

Is there a way to resolve this issue and ensure the equations work across different languages?

Thank you in advance for your assistance!
Last edit: 3 weeks 4 days ago by rbnbchr.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 4 days ago #267007 by tpartner
Use answer codes instead of the answer text in the equations.

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: DenisChenu, rbnbchr

Please Log in to join the conversation.

  • rbnbchr
  • rbnbchr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 4 days ago #267024 by rbnbchr
Thanks for the tip!

However, I have tried the following code:

- CommercialDevicesSV_SQ001.shown == “A1” (A1 for “Ja”)

However, it does not work. Have I overlooked something, do I need to add something to A1?

I have already looked in the manual but can't find anything helpful.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 4 days ago - 3 weeks 4 days ago #267026 by Joffm
Hi,
you did not understand the properties
This

CommercialDevicesSV_SQ001.shown == “A1” (A1 for “Ja”)

would be correct if the text of the answer option was "A1".


See the manual
QCode resp. QCode.code
der ausgewählte Antwortcode für die Frage, wenn er relevant ist (sonst leer), oder der Textwert, wenn es sich nicht um eine codierte Frage handelt
Means: If it is a closed question (with codes) (list(radio), array, etc.) this returns the code ("1" or "5" or "AO01"); if it is an open question (short text. etc) it returns the entered text

QCode.shown
der Anzeigewert für die Frage
Means: in a closed question it returnes the "label", ("sehr gut", "Ja",...)

QCode.value
der Bewertungswert für die Frage, wenn er relevant ist (sonst leer), oder der Textwert, wenn dies nicht der Fall ist
Means
Means: If it is a closed question (with codes) (list(radio), array, etc.) this returns the assessment value (if it is used); if it is an open question (short text. etc) it returns the entered text

The best to learn is:
Create questions (list(radio), multiple, array)
and in a question of type "text display" you show all properties.
This way you see which values are returned.

So either you say
Q1=="A1"  (BTW: Why these alphanumeric codes, instead of 1="Ja", 2="Nein")
or
Q1.shown=="Ja"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 weeks 4 days ago by Joffm.
The following user(s) said Thank You: DenisChenu, rbnbchr

Please Log in to join the conversation.

  • rbnbchr
  • rbnbchr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 1 day ago #267087 by rbnbchr
Thank you for your help!

It worked yesterday by adjusting the relevance equation. However, I wanted to do it now for all other similar questions. However, I always get the error message "Could not save subquestion</p>"

Is this a bug, or can't I change relevance equations for active survey?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 weeks 1 day ago #267090 by Joffm
Usually you can.

But we do not know your survey.

So in my opinion you should send a lss export.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose