Accueil arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
[done] Array (Flexible Labels) (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: [done] Array (Flexible Labels)
#19285
marcvangend (User)
Fresh Lemon
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
[done] Array (Flexible Labels) 1 Month, 3 Weeks ago Karma: 0  
Hi,
I'm trying to find out the best way to make an array-type question with two arrays for each answer.
I created a mockup to illustrate what I mean:


I can think of several ways to make this work:
- php: programming a new question type
- css/template: placing two array questions next to each other and hiding answertext on the second
- javascript: creating two array questions and manupulating the DOM using javascript (jQuery maybe).
But possibly there are even more ways to achieve this.

I'm interested to read your opinions on the preferred solution. Thanks in advance.
 
Logged Logged  
 
Last Edit: 2008/09/26 02:50 By Mazi.
  The administrator has disabled public write access.
#19289
ITEd (Moderator)
LimeSurvey Team
Posts: 350
graphgraph
User Offline Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 3 Weeks ago Karma: 8  
Use the built-in Array (Flexible Labels) Dual Scale question type, setting the headers in the associated dualscale_headerA/dualscale_headerB question attributes.

Regards.
 
Logged Logged  
  The administrator has disabled public write access.
#19293
marcvangend (User)
Fresh Lemon
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 3 Weeks ago Karma: 0  
Wow, it's a built in feature? I don't know why I overlooked that. Thanks for the quick reply.
 
Logged Logged  
  The administrator has disabled public write access.
#19309
Mazi (Moderator)
Moderator Lime
Posts: 3237
graph
User Online Now Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 3 Weeks ago Karma: 25  
You're welcome! If our hints have been helpful and you enjoy limesurvey please consider a donation to the team. We do all this in our free time.

Without your help we can't keep this project alive.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#19311
Mazi (Moderator)
Moderator Lime
Posts: 3237
graph
User Online Now Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 3 Weeks ago Karma: 25  
As I just noticed this isn't your fault because this question type doesn't seem to be mentioned.
Marcvangend, can you help us to improve the manuel by adding some information to this side? You can re-use your screenshot to illustrate the question type. Our manual is a wiki, everyone can edit it.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#19598
marcvangend (User)
Fresh Lemon
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 2 Weeks ago Karma: 0  
Mission completed - I have my dual scale question now.

I created a new image for the wiki page:

because the image I posted before, cannot be achieved with LimeSurvey out-of-the-box. I wanted to have an extra table header, containing the names of the two label sets, but unfortunately I had to edit quanda.php to get it done.

PS. I let the wiki link to the image here on the forum, because I don't know how to upload it to the wiki - I hope that's OK.
 
Logged Logged  
  The administrator has disabled public write access.
#19600
Mazi (Moderator)
Moderator Lime
Posts: 3237
graph
User Online Now Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 2 Weeks ago Karma: 25  
Thanks for your contribution! Nice to see the manual improving.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#19644
ITEd (Moderator)
LimeSurvey Team
Posts: 350
graphgraph
User Offline Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 2 Weeks ago Karma: 8  
You said "... the image I posted before, cannot be achieved with LimeSurvey out-of-the-box. I wanted to have an extra table header, containing the names of the two label sets ...".

You mean the headings above each scale, eg. 'durability' and 'design' in your original illustration, don't you? Very adventurous of you to edit the code, but they can be created by using the dual scale question attributes dualscale_headerA and dualscale_headerB.

I updated the documentation to illustrate a dual scale question with such headings. Thanks for creating the documentation and illustration for this question type!
 
Logged Logged  
  The administrator has disabled public write access.
#19647
marcvangend (User)
Fresh Lemon
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 2 Weeks ago Karma: 0  
You're right ITEd, that's what I meant.

So typical...
This perfectly illustrates my experience with LimeSurvey. Don't get me wrong, IMHO it's the best open-source tool for the job, but:
On one hand, I can't seem to find my way around the documentation and the UI. Features are there, but the interface does not communicate it's potential.
On the other hand, the level of abstraction in the source code is rather low, so for a person with a little php knowledge like myself, it doesn't feel 'very adventurous' to add a couple of lines. (However it doesn't feel right either, for obvious reasons like upgradeability.)

Let's just say I expect a lot from version 2...
 
Logged Logged  
  The administrator has disabled public write access.
#19706
Mazi (Moderator)
Moderator Lime
Posts: 3237
graph
User Online Now Click here to see the profile of this user
Re:Array (Flexible Labels) : one answer, two arrays 1 Month, 2 Weeks ago Karma: 25  
You are right, the manual isn't very good at some points but that's a lack of nearly every open source software I know of.
So if you are missing any information in the manual feel free to add it. Our manual is a wiki, everyone can edit it. You can also link to other sections or the forum to make things clear. Every kind of improvement is appreciated.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top