Welcome to the LimeSurvey Community Forum

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

Show COMMENTS of multiple choice questions

  • develnick
  • develnick's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago - 5 years 6 months ago #174611 by develnick
Hello fellow members!

I'd like to print on the screen for reference the comments given for a multiple choice question.
Please See the attachment. You can see the (fake) text "TEXT COMMENT"as a result for this problem.

I know that in order to show

  • the subquestion text: {qX_qN.shown}
  • the subquestion value: {qX_qN}

but what about the Subquestion's comment?

{qX_qn.comment} does not work.

Javascript neither.

I tried

Code:
<p id="comment"> </p>
$(document).ready(function() {
 
$value = document.getElementById('answer275789X22X138SQ001comment').value
document.getElementById("comment").innerHTML = $value;
 
});

but it didn't work.

- Nick
Attachments:
Last edit: 5 years 6 months ago by develnick. Reason: Explanation
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174613 by DenisChenu
Replied by DenisChenu on topic Show COMMENTS of multiple choice questions

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