Show COMMENTS of multiple choice questions

More
3 weeks 2 days ago - 3 weeks 2 days ago #174611 by develnick
develnick created the topic: Show COMMENTS of multiple choice questions
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

<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: 3 weeks 2 days ago by develnick. Reason: Explanation

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

More
3 weeks 1 day ago #174613 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

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!