Welcome to the LimeSurvey Community Forum

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

Question Preview not Matching Actual Question

  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
7 years 3 months ago #145330 by Winocll_48635
Question Preview not Matching Actual Question was created 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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 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?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • Winocll_48635
  • Winocll_48635's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
7 years 3 months ago #145332 by Winocll_48635
Replied by Winocll_48635 on topic Question Preview not Matching Actual Question
I figured it out...i forgot to put "<th></th>\" above the "</tr>');" line.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose