Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Limesurvey;Social Network Survey, help with a difficult question

Limesurvey;Social Network Survey, help with a difficult question 3 years 4 months ago #93718

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
I have been working on a social network analysis survey for the last month. I've been able to work around most of the questions but there is one that is troubling me for a couple of days.

The question asks the interviewee to answer which of the companies he knows or doesnt know from, ideally, a table of companies. I am a new user of Limesurvey but I haven't been able to find this option of creating a table, with each cell representing a company, and an option button for users to select some cell (and the corresponding company).

Anyone knows if there is a way around this?Or maybe a way to create this template?My programming skills are not up to the task unfortunately, so a starting point would be very helpfull.

Thank you very much in advance!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 4 months ago #93762

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
Not sure i understand right, but:
Multiple choice question type ?

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 4 months ago #93767

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
ideally I would do this with the multiple choice question type, just like Denis. You just add a list of brands and they mark the ones they know.

If you want to force them to choose between "know" and "don't know" you'll need to create a matrix question with 2 point scale.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 4 months ago #93769

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
if this is not what you are after, just show us an example (ideally with a mockup).
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94595

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Hey everyone!Thanks for the answers, it was actually an easy way to do it with multiple questions. My new issue is tricky though, for real.

What I want to do now is to collect the lines (that is firms) for which the interviewee answeres that he/she knows and place them in a new array, in order to ask additional questions on the nature of their relationship.

I know how to do this, on a line by line basis, with a simple condition. But that would mean I would have to add 400 or so more conditions and questions. Is there a way to do this in one go? That is populate an array with the answers containing the "i reckognize" option.

Thank you very much in advance.
Last Edit: 3 years 3 months ago by Teddian.
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94605

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
Actually, this is pretty simple.

If I got you right you want to ask an array question where the answers options are only those brands that they marked as known in the previous multiple answers question, right?

So here is what you do:
1. create the multiple answer question with the brands as answer options
2. create an array question with EXACTLY the same answer options (must be also the same answer code.
3. Use the advanced function array filter on the array question and give the question code of the multipe answer question to filter on.

In this case in the array question only those brands that have been marked as known in the previous question should be shown.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94606

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
And here you'll find the info about the array filter:
docs.limesurvey.org/Question+type+-+Array+(Texts)#Array_filter
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94610

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Thank you very much for your quick response. I am afraid that I failed in my description again.

Both questions are array questions, or at least that's how I've implemented it atm. That is, the first question is an almost 400-long array with brands as lines and 2 options in each line/brand: reckognize/don't reckognize.

My second question will be a follow up to the first. So I only need the brands that the user defined as "reckognized" in the first question, to be the lines of the second array question. Is this still possible with the way you describe?

Thank you and excuse me if this is answered somewhere else.
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94613

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
Hmmm, I don't think that you can filter an array by another array, at least not with the array filter.

Maybe there is a way to do this with javascript or EM, but this will be quite a bit more complicated.

Maybe some of the EM/Javascript experts can help here.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94615

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
To be honest your way isn't bad at all. So I tried to follow the instructions. Made two questions, one multiple choice (code=test) and another array (code=test2). Then I copied the multiple choice elements to the array, put 'test' in 'array filter' option. When I run the survey I get the multiple choice question correctly but the array question shows nothing (where the names of the brands should be) but the answer options. Also selecting elements from the multiple choice question does nothing to the array. :(

Am I doing something terribly wrong?
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94622

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
To be honest your way isn't bad at all.

I know! That is why I suggested it. :laugh:

I think even from a research point of view I would prefer it, because it is a lot easier for respondents to mark the brands they know than to mark all brands in some way, especially with a list of 400 brands (who the hell will answer something like this?). I would split this question in various questions anyway.

You must be doing something wrong, because here it works perfectly.

here a screenshot:


And here a sample question group with the two questions:

File Attachment:

File Name: limesurvey...p_21.lsg
File Size:7 KB


I think this should make things clearerl
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94669

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
So I tried your question group, that is I imported it, changed ur options with my predefined label set (my options) and it didnt work. Is it possible that there is some kind of limit of answers (mine are 325 atm, maybe I should break it down to smaller samples?) in limesurvey?Or is it possible that my dual language (greek and english) has something to do with it?
This is really annoying cause it should be straightforward :(

Edit: Something I forgot, which could be irrelevant. Every time I 'quick add' or add from a predefined label set I get an error called "failed to delete answer" and then when I use back in the browser it sais "subquestions successfully saved". Could be relevant..

Thank you for all the help.
Last Edit: 3 years 3 months ago by Teddian.
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94671

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Okay this works!It just needs less answer options for some reason. Maybe there is a max_limit of answer options somewhere in the code, idk. In any case thanks for all your help and hopefully I will not need to bother you no more :)
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94673

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
New problem :(

As I said above, it worked with around 80 companies (answer options). But when I made a new couple of questions (one multiple, one array-text) for the next 80 companies, nothing happens. Anything I do I cannot make it work. Moved it to different question group, changed names, question id's..I am sorry for repeating myself but this is frustrating..
The administrator has disabled public write access.

Limesurvey;Social Network Survey, help with a difficult question 3 years 3 months ago #94674

  • Teddian
  • Teddian's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
I don't know what else to do. Now even the questions that do work, fail to work if I edit the answer options (either add manually, replace from predefined sets etc.). I am starting to think this is a database issue and not some option in my questions :( And I think it's connected to the "cannot delete answer" message that keeps popping up everytime I edit something.
Anyone knows what to do?Should I start a new survey alltogether?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.284 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form