Welcome to the LimeSurvey Community Forum

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

Maxdiff/Best-worst scaling design

  • rebekahhall54
  • rebekahhall54's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190615 by rebekahhall54
Maxdiff/Best-worst scaling design was created by rebekahhall54
Hello,

I am trying to design a best-worst survey using this workaround:

manual.limesurvey.org/Workarounds:_Quest...mplating#Version_2.5

So far everything is looking good (screenshot shows my current situation) but I am trying to change the column sizes to make the answer option column (middle) bigger.

I have tried following/adapting advice from this forum ( www.limesurvey.org/forum/design-issues/8...mn-width-in-an-array ) but so far have had no luck.

Does anyone know a way I can do this?

Thanks!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190616 by tpartner
Replied by tpartner on topic Maxdiff/Best-worst scaling design
Can you attach a survey export file (.lss) containing only that question and your inserted code?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • rebekahhall54
  • rebekahhall54's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190617 by rebekahhall54
Replied by rebekahhall54 on topic Maxdiff/Best-worst scaling design
Attached- this is my first experience with JavaScript so I'm thinking the way I'm attempting to do this is completely wrong!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago - 4 years 5 months ago #190622 by tpartner
Replied by tpartner on topic Maxdiff/Best-worst scaling design
You can adjust the column widths with pure CSS instead of JavaScript.

Something like this in the question source:

Code:
<style type="text/css">
 
  @media only screen and (min-width: 768px) {
 
    #question{QID} col {
      width: auto !important;
    }
 
    #question{QID} table.ls-answers {
      table-layout: auto;
    }
 
    #question{QID} .answer_cell_SQ001,
    #question{QID} .answer_cell_SQ002 {
      width: 20%;
    }
 
    #question{QID} .ls-answers tbody .answertext {
      text-align: center;
    }
  }
</style>



Sample survey attached:

File Attachment:

File Name: limesurvey...1758.lss
File Size:20 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 5 months ago by tpartner.
The following user(s) said Thank You: rebekahhall54
The topic has been locked.
  • rebekahhall54
  • rebekahhall54's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190624 by rebekahhall54
Replied by rebekahhall54 on topic Maxdiff/Best-worst scaling design
That's great, thank you for your help!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose