- Posts: 12781
- Thank you received: 3940
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
- Topic Author
- Away
- LimeSurvey Community Team
Less
More
5 years 18 hours ago #182393
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
How to get the question text of multiple question was created 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
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10631
- Thank you received: 3696
5 years 2 hours ago #182412
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 How to get the question text of multiple question
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
4 years 11 months ago #182423
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 How to get the question text of multiple question
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 11 months ago #182427
by jelo
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
Replied by jelo on topic How to get the question text of multiple question
Seems to be this "feature" request:holch wrote: Seems like no one wants to touch Expression Manager...
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
- Topic Author
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12781
- Thank you received: 3940
4 years 11 months ago #182428
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to get the question text of multiple question
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
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
4 years 11 months ago #182434
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 How to get the question text of multiple question
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 11 months ago - 4 years 11 months ago #182446
by DenisChenu
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.
Replied by DenisChenu on topic How to get the question text of multiple question
Expression Manager use variables and fixed string.holch wrote: …
I don't understand why, but it is what it is.
…
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
4 years 11 months ago #182452
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 How to get the question text of multiple question
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 11 months ago - 4 years 11 months ago #182456
by DenisChenu
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.
Replied by DenisChenu on topic How to get the question text of multiple question
Yes : but then Expression manager muts be totally rewritten from scratch …holch wrote: I don't think we would need anything else than "Q1.question" and it is the only thing that makes sense.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
4 years 11 months ago #182457
by holch
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.
Replied by holch on topic How to get the question text of multiple question
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.
- tsbqwertz
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
4 years 8 months ago #186633
by tsbqwertz
Replied by tsbqwertz on topic How to get the question text of multiple question
I met the same issue.
Is there still no workaround?
Is there still no workaround?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 8 months ago #186634
by DenisChenu
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.
Replied by DenisChenu on topic How to get the question text of multiple question
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.