- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple question types in array modifiy
- mjr244
- Offline
- New Member
Less
More
11 years 6 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!
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!
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
11 years 6 months ago #86375
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
- mjr244
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 6 months ago - 11 years 6 months ago #86429
by mjr244
Replied by mjr244 on topic Multiple question types in array modifiy
Last edit: 11 years 6 months ago by mjr244.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
11 years 6 months ago #86430
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple question types in array modifiy
Try replacing this line in the workaround code:
With this:
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.
- mjr244
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 6 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
- Offline
- Official LimeSurvey Partner
11 years 6 months ago #86572
by Mazi
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
Replied by Mazi on topic Multiple question types in array modifiy
Thanks for supporting Limesurvey by a donation!mjr244 wrote: tpartner saves the day!!! Thank you so much! (Donating now!)
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.
- zunch2000
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
11 years 5 months ago #87651
by zunch2000
Replied by zunch2000 on topic Multiple question types in array modifiy
Hi All,
Since i didn't succeed i was wondering if someone could help me adjusting the code for the multiple question types in array which was planned for the default template, to fit the "Limespired" template?
Thanks in advance,
Since i didn't succeed i was wondering if someone could help me adjusting the code for the multiple question types in array which was planned for the default template, to fit the "Limespired" template?
Thanks in advance,
The topic has been locked.
- boyesae0
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
11 years 2 months ago #92087
by boyesae0
Replied by boyesae0 on topic Multiple question types in array modifiy
I used your workaround to create an array where each row contains two dropdown list questions, the first a brand list and the second a product list. Each row is the same, allowing users to define multiple products from the same lists. In every row, I get an extra empty dropdown list below the product dropdown, as shown in the attached PNG. I'm using Chrome if that matters.
I also have another JS located in template.js that filters the second list (products) by the answer of the first (brand). I got that workaround here . It's possible that the problem is actually in that code, but I can't find it. Maybe they are conflicting with each other somehow? Any thoughts?
I also have another JS located in template.js that filters the second list (products) by the answer of the first (brand). I got that workaround here . It's possible that the problem is actually in that code, but I can't find it. Maybe they are conflicting with each other somehow? Any thoughts?
Attachments:
The topic has been locked.
- boyesae0
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
11 years 2 months ago - 11 years 2 months ago #92088
by boyesae0
Replied by boyesae0 on topic Multiple question types in array modifiy
Sorry, I meant to also include the .lss file instead of two images.
Attachments:
Last edit: 11 years 2 months ago by boyesae0.
The topic has been locked.
- arpsh
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
11 years 3 weeks ago #94449
by arpsh
I've had exactly the same problem with the limespired template in getting this workaround to operate - all it ever does is hide the subsequent questions! I have a bank of six short text questions (for people to write in their age) which I want to put next to bank of 6 male/female radio buttons, and I simply can't make it do it!
If you, or anyone else, has had any joy in working this out I would be very interested to know how you did it!
Adam
Replied by arpsh on topic Multiple question types in array modifiy
zunch2000 wrote: Since i didn't succeed i was wondering if someone could help me adjusting the code for the multiple question types in array which was planned for the default template, to fit the "Limespired" template?
I've had exactly the same problem with the limespired template in getting this workaround to operate - all it ever does is hide the subsequent questions! I have a bank of six short text questions (for people to write in their age) which I want to put next to bank of 6 male/female radio buttons, and I simply can't make it do it!
If you, or anyone else, has had any joy in working this out I would be very interested to know how you did it!
Adam
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
11 years 3 weeks ago #94464
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple question types in array modifiy
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.
- arpsh
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
11 years 3 weeks ago #94470
by arpsh
I would be delighted to
I think it should be be pretty simple stuff, but I've never got the workarounds to work in Limespired, and my usual method of tinkering with CSS/javascript (i.e. google plus educated guesswork at the expense of any other skills!) has failed me!
Muchas gracias for any help you can give!
Replied by arpsh on topic Multiple question types in array modifiy
tpartner wrote: Can you attach a sample survey?
I would be delighted to
I think it should be be pretty simple stuff, but I've never got the workarounds to work in Limespired, and my usual method of tinkering with CSS/javascript (i.e. google plus educated guesswork at the expense of any other skills!) has failed me!
Muchas gracias for any help you can give!
Attachments:
The topic has been locked.