Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Discrete choice experiment

  • fkerouaz
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242051 by fkerouaz
Discrete choice experiment was created by fkerouaz
Hello, 
I am doing a choice experiment on LimeSurvey and I have a question, is it possible to include a choice card in the form of a picture with the possibility to check the desired scenario? 
The photo (card) to be included is attached to this post.
 
Thank you in advance for your help!

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242054 by tpartner
Replied by tpartner on topic Discrete choice experiment
Yes, this can be done with some JavaScript/CSS development but you should consider how this is to work (or not work) on smaller mobile devices.

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
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242055 by fkerouaz
Replied by fkerouaz on topic Discrete choice experiment
Thank you for your quick reply.
I am not too familiar with java programming, can you help me please?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago - 1 year 3 weeks ago #242056 by Joffm
Replied by Joffm on topic Discrete choice experiment
You may search for "apple - banana".
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
Last edit: 1 year 3 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • fkerouaz
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242060 by fkerouaz
Replied by fkerouaz on topic Discrete choice experiment
 

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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242062 by Joffm
Replied by Joffm on topic Discrete choice experiment
You'd better sent the lss export of the relevant questions
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242070 by Joffm
Replied by Joffm on topic Discrete choice experiment
Here a small example.
Because of the class "table-responsive" it is usable on small devices.
You see the scroll bar.
 

 

File Attachment:

File Name: limesurvey...1194.lss
File Size:28 KB


Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • fkerouaz
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242072 by fkerouaz
Replied by fkerouaz on topic Discrete choice experiment
Thank you very much,
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242074 by Joffm
Replied by Joffm on topic Discrete choice experiment
I already asked for your lss.

I need to represent the SNH1/SNH2 titles with images like in the example I sent.

Okay, insert images. It is plain HTML.

I also need to add a column for Attributes, as I will be representing these attributes with titles!

Of course you have to adapt; but you still didn't provide more

But a separate column for the attributes; thats like the apple-banana" example.

What is the JavaScript for to make the choices button appear above each scenario?

In the second link I provided there is everything you would like to have.
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
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242076 by fkerouaz
Replied by fkerouaz on topic Discrete choice experiment
Great!
I will do this and let you know.

What do you mean by lss?

Fkerouaz

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242077 by holch
Replied by holch on topic Discrete choice experiment

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
  • fkerouaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 weeks ago #242122 by fkerouaz
Replied by fkerouaz on topic Discrete choice experiment
Hi all,
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. 

File Attachment:

File Name: limesurvey...2074.lsq
File Size:15 KB


Have a nice day. 

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose