Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple question types in array modifiy

Re: Multiple question types in array modifiy 2 years 5 months ago #80310

  • AlexiaK
  • AlexiaK's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
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_group_72.lsg
File Size: 76 KB
The administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 5 months ago #80314

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 5 months ago #80330

  • AlexiaK
  • AlexiaK's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
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 administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 2 months ago #84631

  • mjr244
  • mjr244's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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 administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 2 months ago #84639

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 2 months ago #84646

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4263
  • Thank you received: 801
  • Karma: 367
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.

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 types in array modifiy 2 years 2 weeks ago #86259

  • mjr244
  • mjr244's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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</a> 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!
Screenshot2012-09-30at1.08.51PM.png
The administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 2 weeks ago #86375

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4263
  • Thank you received: 801
  • Karma: 367
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.

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 types in array modifiy 2 years 2 weeks ago #86429

  • mjr244
  • mjr244's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
OK! I activated a sample. Here is the link.

:) Thanks for your help!
Last Edit: 2 years 2 weeks ago by mjr244.
The administrator has disabled public write access.

Re: Multiple question types in array modifiy 2 years 2 weeks ago #86430

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4263
  • Thank you received: 801
  • Karma: 367
Try replacing this line in the workaround code:
$('div.questionCell td.questiontext').parent().hide();

With this:
$('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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: mjr244
Moderators: ITEd
Time to create page: 0.128 seconds
Donation Image