Welcome to the LimeSurvey Community Forum

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

How to get the question text of multiple question

  • Joffm
  • Joffm's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 18 hours ago #182393 by Joffm
Hi, all,
in single questions "Q1.question" displays the question text.
in multiple questions I am only able to get the text of subquestions "Q1_SQ001.question" while "Q1.question" gives an error of "undefined".

Is there a way to get the question text?

I would like to display it in the result report and not have to enter it manually each time.

Thanks

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 hours ago #182412 by tpartner
Hi Joffm. There has been some discussion about this but, as far as I know, it is still not available in Expression Manager.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182423 by holch
Unfortunately, somehow the question text is not accessible for questions with subquestions. I don't understand why, but it is what it is. I think I have even created a bug report or feature request at one point. But I don't think that this every moved forward. Seems like no one wants to touch Expression Manager...

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.
More
4 years 11 months ago #182427 by jelo

holch wrote: Seems like no one wants to touch Expression Manager...

Seems to be this "feature" request:
bugs.limesurvey.org/view.php?id=8858

.question in IF broken.
bugs.limesurvey.org/view.php?id=14486

Looks like more lipstick on a pig (e.g. WYSIWYG Mode) first.
As long as I see tweets stating that LimeSurvey is as powerful as Qualtrics, the strategy seems to be right.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Joffm
  • Joffm's Avatar Topic Author
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182428 by Joffm
Yes, it is what it is.

And it is not a big concern. But I just wanted to ask, in case I missed something somewhere.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182434 by holch
yeah, I was as suprised as you were when I noticed this the first time. Wasn't a big deal for me at the time as well, but I can see how it can be a lot of extra work in some specific cases.

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
4 years 11 months ago - 4 years 11 months ago #182446 by DenisChenu
Replied by DenisChenu on topic How to get the question text of multiple question

holch wrote: …
I don't understand why, but it is what it is.

Expression Manager use variables and fixed string.

Variables are the answer of question : the part filling the database. Single quuestion : Q1 is the variable, multiple question Q1_SQ1 is the variable : see manual.limesurvey.org/Expression_Manager#Qcode_Variable_Naming

Fixed string are TEMPLATEURL, SID, TOKEN:XXXX etc …

When know this : the question is why we have Q1.question ? It's more a hack, and helper than something logic ;)


Q1 in a multiple question didn't get in variable .

You can think it's easy to have Q1.question : the question of Q1 BUt : what for Q1.NAOK ? Q1.value ? Etc …

It's the reason.

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.
Last edit: 4 years 11 months ago by DenisChenu.
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182452 by holch
I don't think we would need anything else than "Q1.question" and it is the only thing that makes sense.

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
4 years 11 months ago - 4 years 11 months ago #182456 by DenisChenu
Replied by DenisChenu on topic How to get the question text of multiple question

holch wrote: I don't think we would need anything else than "Q1.question" and it is the only thing that makes sense.

Yes : but then Expression manager muts be totally rewritten from scratch …

I think about a way to update knowVars by plugins to fix this issue (adding a plugin in core) : adding Q1.question for multiple choice and adding Q1.help for all question

But i'm unsure of the best way …

1. Easy way : allow adding only «fixed» string like today (the most easy)
Then : QUESTION_Q1,QUESTION_Q1_SQ1 etc … but what happen if there are QUESTION in survey
2. Allow update variable part : then have Q1.question and Q1.help : think it's great but can broke a lot of things …
3. Only allow new fixed variable without _ (only alphabetic) : easiest but … lack of feature
4. Only allow new fixed var + create own part QUESTION:Q1, QUESTION:Q1_SQ01 (like token) : think it's the cleaner but did we have all feature needed ?

Discussion here : www.limesurvey.org/forum/development/118...te-by-plugins#182458

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.
Last edit: 4 years 11 months ago by DenisChenu.
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182457 by holch

Yes : but then Expression Manager muts be totally rewritten from scratch …


I know. But I also know that everyone is scared of that. So it will most probably never happen. ;-)

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.
More
4 years 8 months ago #186633 by tsbqwertz
I met the same issue.
Is there still no workaround?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186634 by DenisChenu
Replied by DenisChenu on topic How to get the question text of multiple question
No workaround,

In project (by core plugins) in 4.0 : github.com/LimeSurvey/LimeSurvey/pull/1256

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