Welcome to the LimeSurvey Community Forum

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

Some answers

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago - 2 years 11 months ago #230284 by Armitage2k
Several Array Questions was created by Armitage2k
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.23+220705
Own server or LimeSurvey hosting: own server
Survey theme/template: Custom, fruity based
==================
(Write here your question/remark)

I am struggling with a few basic 10-point Array questions I would need help with please.
  1. I am unable to apply the percentual width of the subquestion. No matter what value I enter (eg. 33/40/20/etc) it is not applied to the question. I am using a custom theme and have tried adding the `width: 100%` CSS remark in the custom.css file, but no success either. Also, how can I avoid impacting the mobile view with this setting, or rather, can I expect any impact on the mobile view if the width is pre-defined?
  2. The question has a 10 point scale with labels for 1/2/3/4/5/etc. I would like to change "1" to "1 - Poor" and "10" to "10 - Excellent" to give the user a visible remark. Also, I would like to reduce the font size for the "1" and "10" segment. How do I achieve this?
  3. Some array questions consist of a single question, which means the subquestion cell is empty. I would like to hide this subquestion cell completely and align the 1-10 rating scale to the `center`, how do I achieve this for a specific question only?
Extra points if one can answer this:
  • I have groups with a single, mandatory question. I would like to disable the "Next" button until the question is answered, and also remove the "*" (= mandatory star mark) next to the question. How can I achieve this?

Thank you very much!
Last edit: 2 years 11 months ago by Armitage2k. Reason: spelling

Please Log in to join the conversation.

More
2 years 11 months ago #230287 by davebostockgmail
Replied by davebostockgmail on topic Some answers
For point 2 you just need to use an Array Question Type and then you can put in your own labels.

For point 3 you can use the same Question Type and change the (Sub) Question width to 0 in display options

For point 1 ... no idea on this as you are using a custom template and this may impact the settings

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230289 by Armitage2k
Replied by Armitage2k on topic Some answers
Hi,

thank you for the reply. As per your points:

Point 2: I do not see any label settings. I am not talking about the label for the subquestion, I am referring to the label of the point scale (eg. 1/2/3/4/5/6/etc)

Point 3: Tried setting 0 but also no effect. Tried with the default fruity theme and its the same.

Appreciate if someone could advise.
Thanks

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230290 by Joffm
Replied by Joffm on topic Some answers
Of course you do not see label settings.
This is a predefined question 10-point.
And here you see the effects of "subquestion width"
 
  

  


To be free in your wording use an "array".
 

Best, you read the manual about question types
[url] www.limesurvey.org/manual/Question_types/en [/url]
and study the sample survey about question types
e.g. this one
[url] www.limesurvey.org/manual/ExpressionScri...Types_and_Attributes [/url]
 

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

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230292 by Armitage2k
Replied by Armitage2k on topic Some answers
Thank you, appreciate the clarification on the 10-point array vs text array.

As for the width, I still am unable to get this to work, no matter the settings. Is there perhaps a theme setting I need to look at to get this to work?

Thank you

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230294 by Joffm
Replied by Joffm on topic Some answers
Then you have to send your survey (these relevant questions) as lss Export.

Otherwise we cannot help.

Joffm

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

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230295 by tpartner
Replied by tpartner on topic Some answers

As for the width, I still am unable to get this to work, no matter the settings. Is there perhaps a theme setting I need to look at to get this to work?

Try it with one of the core themes.

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.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago - 2 years 11 months ago #230296 by Armitage2k
Replied by Armitage2k on topic Some answers
Thanks, that worked. Tried with Fruity and it behaves as expected. What setting should I look out for in the custom theme that could influence this?

EDIT: found it, this was in my custom.css for whatever reason, after I removed it the spacing and width finally worked.
Code:
table.ls-answers .col-answers{ width: 60% !important; }
Last edit: 2 years 11 months ago by Armitage2k.

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230298 by Armitage2k
Replied by Armitage2k on topic Some answers
One final question on this please.

I wan to show/hide Q017 based on the Q016 array score in the same group. If Q016 has a score of higher than 5/10 points, then show question Q017.

Condition '
Code:
(Q016 > 5)
' does not do the trick, I tried various other solutions like
Code:
!is_empty(Q016)
or 
Code:
if(Q016>5,1,0)
, but all to no avail. I looked at the manual and dont see any specific syntax issue, so not sure why this does not work?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230299 by holch
Replied by holch on topic Some answers
What are the answer codes of your labels?

Also, as you seem to use an array question, you always need to reference also the subquestion, even if there is just one.

Something like this should do the trick:
Code:
Q016_SQ001>5

Of course this needs to be adapted to codes you are using.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago - 2 years 11 months ago #230304 by Joffm
Replied by Joffm on topic Some answers
Hi,
either you read the manual where you find this

Qcode variable naming

Here are the details of how to construct a Qcode (and access some properties) by question type.

In general, Qcodes are constructed as: QuestionCode . '_' . SubQuestionID . '_' . ScaleId

For comment and other, the corresponding question codes are QuestionCode_comment and QuestionCode_other, respectively.

or -what I recommend:
Activate the survey, enter some data and have a look at the answer table.
Here you see exactly how to access a variable and how the condition has to be.
Afterwards you deactivate again.

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 11 months ago by Joffm.
The following user(s) said Thank You: Armitage2k

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230306 by Armitage2k
Replied by Armitage2k on topic Some answers
thank you, this works just fine. All good now, problem solved. Cheers!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose