Welcome to the LimeSurvey Community Forum

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

array question with pipe bar

  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 4 months ago #161457 by RitaShen
array question with pipe bar was created by RitaShen
if I do this in array question, and use pipe bar (|) in the sub-question.
how can I adjust the blank place (the red block) that the text can close to the center


thanks

Rita
The topic has been locked.
  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 4 months ago #161479 by RitaShen
Replied by RitaShen on topic array question with pipe bar
sorry, I just found that I have ask my question in the wrong classification:(
The topic has been locked.
  • StuartJKondziella
  • StuartJKondziella's Avatar
  • Visitor
  • Visitor
6 years 4 months ago #161495 by StuartJKondziella
Replied by StuartJKondziella on topic array question with pipe bar
Hi RitaShen,

no worries, I moved your topic to the Design issues thread. ;)


Not sure how you've structured your question by looking at the screenshot.

However, if you're merely trying to change the gaps, try editing your array question by going to Advanced Settings > Display >

(Sub-)question width

-> there, you ought to change it by testing different values in percent, e.g. 75%.
The topic has been locked.
More
6 years 4 months ago #161499 by jelo
Replied by jelo on topic array question with pipe bar

StuartJKondziella wrote: However, if you're merely trying to change the gaps, try editing your array question by going to Advanced Settings > Display > (Sub-)question width

I wonder how that would narrow the gaps when using the pipe to split the text items on both sides. The sub-question width seems to have no impact on both sides.
Did you get a different result?

10%

30%


Looks to me like you will have to work on the CSS-level to get some change.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • StuartJKondziella
  • StuartJKondziella's Avatar
  • Visitor
  • Visitor
6 years 4 months ago #161502 by StuartJKondziella
Replied by StuartJKondziella on topic array question with pipe bar
You're right. Was the first thing that came to mind, but will likely require a workaround script to change the column widths.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #161504 by holch
Replied by holch on topic array question with pipe bar
I am wondering if this will even work for what RitaShen is trying to do.

Usually for arrays you need one answer per line. As there is only 1 answer per line in her example, it can only work if the question is not mandatory.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #161546 by tpartner
Replied by tpartner on topic array question with pipe bar
I'm also not sure how this question type would work because, even if non-mandatory, there is no way to un-check a radio.

Having said that if you want to center the labels, you can do something like this...

1) Assign an answer width of 80 (this width gets split between the left and right labels in a semantic differential)

2) Assign a CSS class something like "centered-labels"

3) Add something like this to the end of template.css:

Code:
.centered-labels th.answertext {
  text-align: right;
}
 
.centered-labels th.answertextright {
  text-align: left;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #161547 by tpartner
Replied by tpartner on topic array question with pipe bar
I'm also not sure how this question type would work because, even if non-mandatory, there is no way to un-check a radio.

Having said that, if you want to center the labels, you can do something like this...

1) Assign an answer width of 80 (this width gets split between the left and right labels in a semantic differential)

2) Assign a CSS class something like "centered-labels"

3) Add something like this to the end of template.css:

Code:
.centered-labels th.answertext {
  text-align: right;
}
 
.centered-labels th.answertextright {
  text-align: left;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 4 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose