Welcome to the LimeSurvey Community Forum

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

Undefined variable QCode

  • dvpaul
  • dvpaul's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #116279 by dvpaul
Undefined variable QCode was created by dvpaul
Hi,
I'm using limesurvey 2.05,
I created a simple survey, 1 group 2 questions:
Q1: type Multiple choice, with 2 values, Q1_1, Q1_2

Q2: type equation containing {Q1.question}
answer: Q1 is undefined.

Q1_1.question works, but I get the label of the 1st choice
I tried that.Q1 without success.

How can I access Q1.question?

It works with questions without subquestions (Yes/No)

Thanks for your help!
Paul
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116293 by tpartner
Replied by tpartner on topic Undefined variable QCode
You cannot access a multiple-choice question as a whole. You need to access each sub-question - so, {Q1_1} or {Q1_2}. These will return "Y" or null depending on whether the sub-question is checked.

manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • dvpaul
  • dvpaul's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months ago #116299 by dvpaul
Replied by dvpaul on topic Undefined variable QCode
Thank you for your reply,

so there is no other way to access question text of a multiple choice question in EM?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116300 by holch
Replied by holch on topic Undefined variable QCode
Ahhh, you are trying to access the question text! I had something similar a while ago. I am not sure if I was able to solve it, but it is possible that this is a 'bug' in EM, because for all other (?) questions you can access the question text.

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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116303 by DenisChenu
Replied by DenisChenu on topic Undefined variable QCode

holch wrote: Ahhh, you are trying to access the question text! I had something similar a while ago. I am not sure if I was able to solve it, but it is possible that this is a 'bug' in EM, because for all other (?) questions you can access the question text.

I think we have it in Developpement mantis.

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116307 by holch
Replied by holch on topic Undefined variable QCode
This means it is a know bug?

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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116310 by DenisChenu
Replied by DenisChenu on topic Undefined variable QCode
It's not really a bug :), but a mis-functionnality.
Denis

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116313 by holch
Replied by holch on topic Undefined variable QCode
Tomatoe - Tomato.

Hahahaha, OK, I won't discuss denominations. Let's say something isn't working as it is supposed to. ;-)

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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116319 by DenisChenu
Replied by DenisChenu on topic Undefined variable QCode

holch wrote: Let's say something isn't working as it is supposed to. ;-)

But NO, it don't supposed too.

It's the reason it's not a bug.
A mis-feature .

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.

Lime-years ahead

Online-surveys for every purse and purpose