Welcome to the LimeSurvey Community Forum

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

put checked answer of a M-Choice Checkbox in the comment of MChoice With Comment

  • walidhamra
  • walidhamra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 8 years 9 months ago #121102 by walidhamra
Hi

please I need your help...
I need to :
  1. put the answer of a multiple choice checkbox question (Q3S2) in the comment of the M choice with comment question (Q4Dom)
  2. Auto-check answer on the question Q4Dom (M choice question)
  3. show the 1st comment of Q4Dom question in the question Q4AA1, the second on Q4AA2...

the questionnaire is on the attach.
and thnaks a lot for your help...

Q3S2


Q4Dom



Q4AA1



Questionnaire:


File Attachment:

File Name: limesurvey...1582.lss
File Size:178 KB


and thnaks a lot for your help...
Last edit: 8 years 9 months ago by walidhamra.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121139 by tpartner
#1 and #2
- Will the questions be displayed sequentially on the same page?
- Do you want the LABELS or the COMMENTS of the checked Q3S2 answers piped into the comments of Q4Dom?

#3
- Try this:
Code:
{Q4Dom_1comment}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • walidhamra
  • walidhamra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #121142 by walidhamra
Thanks a lot for your reply

#1 and #2
- not on the same page?
- LABELS of the checked Q3S2 answers piped into the comments of Q4Dom?
#3
I tried {Q4Dom_1comment} but doesn't work.

please helping me to find a solution.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121145 by tpartner
#1 and #2
Unfortunately, there is no Expression Manager variable for sub-question text (labels) so you will need to use JavaScript to build your own array of text strings depending on the checked states of the Q3S2 answers. This would be a fairly complex script which I don't have time for now.

#3
Yes, it does work - try the attached survey.

File Attachment:

File Name: limesurvey...5821.lss
File Size:179 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • walidhamra
  • walidhamra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #121160 by walidhamra
Thank you very very much for your assistance.

I need just to know how autocheck all items in question Q4Dom .
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121164 by tpartner
You can set default answers for the checkboxes.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
  • walidhamra
  • walidhamra's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #121167 by walidhamra
Thank you very very very much..
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose