Welcome to the LimeSurvey Community Forum

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

Multiple question types in array modifiy

More
11 years 10 months ago #80310 by AlexiaK
Replied by AlexiaK on topic Multiple question types in array modifiy
I just started a new test survey, tried it again and it worked perfectly! But after exporting the question group and adding it to my main survey.. the only thing that appears is the 0-100% bar at the top of the page. My main survey isn't live yet so I've attached the questions group file. Is there anything else I should attach?

File Attachment:

File Name: limesurvey...p_72.lsg
File Size:76 KB
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 10 months ago #80314 by Mazi
Replied by Mazi on topic Multiple question types in array modifiy
Did you adapt the IDs (the group ID will change) at this workaround?

Can you post a link to an activated sample survey?

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
11 years 10 months ago #80330 by AlexiaK
Replied by AlexiaK on topic Multiple question types in array modifiy
I deleted some of the question groups I won't be using and it now works! I have no idea how.. How do you adapt the IDs (possibly I deleted a question group with similar IDs?).

So now that this is working, I need to adapt it.. How do I change the code in the Multiple question types in array: text, yes/no, short text, numeric, dropdown list

into:

text, yes/no and two dropdown lists?
The topic has been locked.
More
11 years 7 months ago #84631 by mjr244
Replied by mjr244 on topic Multiple question types in array modifiy
Hi!

After spending many hours on this, I'm posting for help! I'm trying to incorporate multiple arrays and "normal" (non-inline) questions in the same survey. I was successful in getting my first array to work, using the original workaround . But I can't seem to make a second array work, no matter how I tweak the start question parameters.

To clarify, I'm trying to do something like this:
normal (non-inline) questions, then multiple question types in an array, then another array of multiple question types, then more normal questions.

I'm partway through implementing the "XHTML more valid" workaround--but, at the risk of seeming lazy, I wanted to check first, because I've already been sinking so many hours into this. :pinch:

Thanks in advance for any help you can provide! I've already benefited a great deal from the workaround and subsequent modifications, even if I haven't gotten multiple arrays to play well together yet.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 7 months ago #84639 by Mazi
Replied by Mazi on topic Multiple question types in array modifiy
Please post a link to an activated test survey so we can check if there is anything wrong at your code.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 7 months ago #84646 by tpartner
Replied by tpartner on topic Multiple question types in array modifiy
The workaround was never intended to be used more than once on a page and would require extensive alteration to do so. I recommend putting your questions on two pages.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
11 years 5 months ago #86259 by mjr244
Replied by mjr244 on topic Multiple question types in array modifiy
Hello again,

Thank you for the helpful suggestion to move additional arrays to new pages!

I'm now wondering if you might help with the following: I'm creating another multiple question type array. One of the <a href=' www.docs.limesurvey.org/tiki-index.php?p...tions+for+LimeSurvey '>question types inside the array is a boilerplate, but I'm having a hard time making the text appear. I am guessing this has to do with boilerplate questions being hidden after row/column 1 (since the numbers and headers show up fine), but I'm a code naif.

I've attached a screen shot of what I'm trying to do.

Thanks in advance for any help you can provide!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 5 months ago #86375 by tpartner
Replied by tpartner on topic Multiple question types in array modifiy
mjr244, can you attach a sample survey?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
11 years 5 months ago - 11 years 5 months ago #86429 by mjr244
Replied by mjr244 on topic Multiple question types in array modifiy
OK! I activated a sample. Here is the link .

:) Thanks for your help!
Last edit: 11 years 5 months ago by mjr244.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 5 months ago #86430 by tpartner
Replied by tpartner on topic Multiple question types in array modifiy
Try replacing this line in the workaround code:
Code:
$('div.questionCell td.questiontext').parent().hide();

With this:
Code:
$('div.questionCell td.questiontext').parent().hide();
$('div.boilerplate.questionCell td.questiontext').parent().show();

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mjr244
The topic has been locked.
More
11 years 5 months ago #86472 by mjr244
Replied by mjr244 on topic Multiple question types in array modifiy
:) :) :) tpartner saves the day!!! Thank you so much! (Donating now!)
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
11 years 5 months ago #86572 by Mazi
Replied by Mazi on topic Multiple question types in array modifiy

mjr244 wrote: :) :) :) tpartner saves the day!!! Thank you so much! (Donating now!)

Thanks for supporting Limesurvey by a donation!

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose