- Posts: 16
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Discrete choice experiment
- fkerouaz
- Topic Author
- Offline
- New Member
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3595
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- fkerouaz
- Topic Author
- Offline
- New Member
- Posts: 16
- Thank you received: 0
I am not too familiar with java programming, can you help me please?
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12941
- Thank you received: 3979
This is the "grandfather" of all these solutions.
The idea is to create a HTML table with the options in the question text and then only move the radio-buttons also into the question text (by javascript)
Have a look here
[url] forums.limesurvey.org/index.php/forum/ca...wer-options-in-a-box [/url]
or here (really long)
[url] forums.limesurvey.org/index.php/forum/de...ased-previous-answer [/url]
To display on smaller evices you may use some libraries, like "tiny-slider" or "slick"
Here "full screen"
and smaller device (horizontally scrolling)
If I have some time this afternoon, I will create an example.
Anyway you have to be a bit familiar with HTML.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- fkerouaz
- Topic Author
- Offline
- New Member
- Posts: 16
- Thank you received: 0
Thank you Joffm for your help!
If I understand correctly, I have to do it by hand for all the cards?
I have done the necessary with HTML, but how to make this result more attractive, like the last example you mentioned. My result is attached here!
The java coding seems a bit complicated, can you help me with my case please?
Thank you for your time.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12941
- Thank you received: 3979
Looks like you use the wrong question type. Should be "array".
Joffm
BTW: The used language is "JavaScript", not "Java".
Two very different languages.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12941
- Thank you received: 3979
Because of the class "table-responsive" it is usable on small devices.
You see the scroll bar.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- fkerouaz
- Topic Author
- Offline
- New Member
- Posts: 16
- Thank you received: 0
I need to represent the SNH1/SNH2 titles with images like in the example I sent.
I also need to add a column for Attributes, as I will be representing these attributes with titles!
How can I do this?
What is the JavaScript for to make the choices button appear above each scenario?
Thanks again for your time.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12941
- Thank you received: 3979
Okay, insert images. It is plain HTML.I need to represent the SNH1/SNH2 titles with images like in the example I sent.
Of course you have to adapt; but you still didn't provide moreI also need to add a column for Attributes, as I will be representing these attributes with titles!
But a separate column for the attributes; thats like the apple-banana" example.
In the second link I provided there is everything you would like to have.What is the JavaScript for to make the choices button appear above each scenario?
Separate column for attributes, images, buttons above (just neglect the three rows at the beginning of the table.)
And there is a sample survey.
Now, start working and show your result as lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- fkerouaz
- Topic Author
- Offline
- New Member
- Posts: 16
- Thank you received: 0
I will do this and let you know.
What do you mean by lss?
Fkerouaz
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11660
- Thank you received: 2742
What do you mean by lss?
These are Limesurvey basics.
You can export questionnaires in the format of .LSS files. These are special Limesurvey XML files that allow to export and import Limesurvey questionnaire structures, just like the example that Joff provided you in one of his posts.
You should make yourself familiar with the limesurvey basics in the manual: manual.limesurvey.org/Display/Export_survey
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- fkerouaz
- Topic Author
- Offline
- New Member
- Posts: 16
- Thank you received: 0
Thank you for your answers, and sorry for my ignorance.
I am not able to see the result of the question when I choose 'array' as the question type.
I have exported the question to lss and I hope it is the right one.
Have a nice day.
Please Log in to join the conversation.