Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple Question type array

Multiple Question type array 3 years 3 months ago #63562

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Hi

I have successfully implemented the workaround by tpartner to show multiple question types in an array as shown here

I would like to put a boilerplate question at the beginning of the group to give some information but at the moment, this is getting merged into the question table.
Is it possible to stop this?

Cheers

Paul
The administrator has disabled public write access.

Re: Multiple Question type array 3 years 3 months ago #63574

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4270
  • Thank you received: 803
  • Karma: 368
Untested but try this:

Find this
$(document).ready(function() {
And add this on the next 2 lines
$('div[id^="question"]').addClass('moveable');
$('.boilerplate:first').removeClass('moveable');


Then replace this
if(rowNum <= rows) { // This IF condition only needed if there are questions following the "inline" questions
With this
if(rowNum <= rows && $(this).hasClass('moveable')) { // This IF condition only needed if there are questions following the "inline" questions
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Multiple Question type array 3 years 2 months ago #63910

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Hi Tony

I've only just got round to implementing this and the solution you suggested doesn't seem to work.
I now just get each question underneath each other in a long list.

I can send you a link to the survey, via email, if it would help.

Cheers

Paul
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.098 seconds
Donation Image