- Posts: 98
- Thank you received: 7
Ask the community, share ideas, and connect with other LimeSurvey users!
Best is to staring by explain what did you trye, and how do you see it don't work.lintu wrote: ....
I tried few things based on few of the forum posts, but nothing is working for me.....
Best is to staring by explain what did you trye, and how do you see it don't work.
Denis
<script type="text/javascript" charset="utf-8"> var q = {QUESTION_CODE}; if q == 'xyz'{ document.write("blah blah"); } else { //do nothing} </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var q = '{QUESTION_CODE}'; if (q == 'Q1') { document.write('This is '+q+'!'); } else { // Do nothing } }); </script>
Try setting display question number and code to "Both". (displaying just the code didn't work for me either - maybe a bug)I have turned on the option to show the question code and tried the code example that tpartner provided, but that did not work.