How to get the question text of multiple question

More
4 months 4 weeks 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
Attachments:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
4 months 3 weeks 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #182446 by DenisChenu

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 .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 4 months 3 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #182456 by DenisChenu

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 .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 4 months 3 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186633 by tsbqwertz
I met the same issue.
Is there still no workaround?

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186634 by DenisChenu
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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186635 by holch
Nope. As long there hasn't appeared a sponsor with big pockets to finance the rewrite of Expression Manager, the situation is still the same.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186638 by DenisChenu

holch wrote: Nope. As long there hasn't appeared a sponsor with big pockets to finance the rewrite of Expression Manager, the situation is still the same.

DenisChenu wrote: No workaround,

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

This was not sponsored , doing it for glory …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186640 by holch

This was not sponsored , doing it for glory …

i was more referring to the complete rewrite of EM, that you said was necessary to include this. ;-)

Nice to see that this will be possible in LS 4.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!