Welcome to the LimeSurvey Community Forum

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

Question Preview not Matching Actual Question

More
8 years 9 months ago #145330 by Winocll_48635
A couple of questions in my survey look fine when i preview the question, but when i take the survey they don't look like they should. Each is an array type question with subquestions, and each contains a script for putting headings in the rating scale.

The script looks like this:
Code:
<script type="text/javascript" charset="utf-8">  
    $(document).ready(function(){
 
    var thisQuestion = $('#question{QID}');
 
    $('table.subquestions-list thead', thisQuestion).prepend('<tr class="new-header">\
      <td>&amp;nbsp;</td>\
      <th colspan="11" style="text-align:left;">Not Satisfied<span style="float:right">Very Satisfied</span></th>\
    </tr>');
  });
</script>

(note: some of the following images has been redacted for privacy reasons)

Here's what the Question previews look like:


Here's what the question looks like when taking the survey:
The topic has been locked.
More
8 years 9 months ago #145331 by holch
The second picture looks like an alert that mandatory subquestions haven't been answered.

Does it look like this immediately when you open them or only when you click next?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
8 years 9 months ago #145332 by Winocll_48635
I figured it out...i forgot to put "<th></th>\" above the "</tr>');" line.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose