Maxdiff/Best-worst scaling design

More
1 month 1 week ago #190615 by rebekahhall54
Hello,

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

https://manual.limesurvey.org/Workarounds:_Question_design,_layout_and_templating#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 ( https://www.limesurvey.org/forum/design-issues/86298-column-width-in-an-array ) but so far have had no luck.

Does anyone know a way I can do this?

Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago #190616 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #190617 by rebekahhall54
Attached- this is my first experience with JavaScript so I'm thinking the way I'm attempting to do this is completely wrong!
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #190622 by tpartner
You can adjust the column widths with pure CSS instead of JavaScript.

Something like this in the question source:

<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.
Official LimeSurvey Partner - partnersurveys.com
Attachments:
Last edit: 1 month 1 week ago by tpartner.
The following user(s) said Thank You: rebekahhall54

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #190624 by rebekahhall54
That's great, thank you for your help!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!