Welcome to the LimeSurvey Community Forum

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

Changing the width of columns in an array

  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215404 by MatthieuBRANTHOME
Changing the width of columns in an array was created by MatthieuBRANTHOME
Hi!
I am using version 2.56.1+161118 of LimeSurvey
I have created an array question with 10 radio buttons, the answers are numbers from 0 to 9.
The problem is that these answers take up too much space compared to the sub-questions. I can change the size of the sub-questions, but this has no effect beyond 30%. As you can see below, it would be possible to save space by moving the columns containing the radio buttons closer together.


Do you have any idea how to proceed?

Thank you in advance,

MatthieuB
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago - 2 years 10 months ago #215405 by holch
Replied by holch on topic Changing the width of columns in an array
Sorry, your installation is completely outdated. It was released on 18.11.2016, over 4 years ago. Not sure if anyone who helps here in the forum still has such an old installation. From what I understand, the colums for the responses are all the same width and thus are probably defined by the last column "sans response". Rename the column to something like "S" just to see what happens.

And you should seriously consider and update to the latest stable version of Limesurve (which currently is LS 3.x). You are running a software that has not received any updates and bug fixes for 4,5 years and you are possibly collecting personal data. In times of the GDPR this is a dangerous game, in my opinion. If something happens, you can't really argue that you were doing everything in your power to protect the data, by using state of the art software, can you? ;-)

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

Last edit: 2 years 10 months ago by holch.
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago - 2 years 10 months ago #215408 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
Hi Holch and thank you for your quick answer.

First, this old version of LimeSurvey is installed in my university and there is nothing I can do about it.

Secondly, in fact the column "Sans réponse" = "no answer" appears automatically when the question is not mandatory. I tried making the question mandatory and it does not change the width of the other columns: 

Last edit: 2 years 10 months ago by MatthieuBRANTHOME.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #215420 by tpartner
Replied by tpartner on topic Changing the width of columns in an array
The problem is terrible styling in that version, specifically the cell padding.

Add this to the question source:

 
 
Code:
<style type="text/css">
 
  @media only screen and (min-width: 780px) {
 
    #question{QID} table.array-no-dropdown td.answer-item.text-center {
      padding: 5px 0;
    }
 
    #question{QID} .radio label::before,
    #question{QID} .radio label::after {
      margin-left: 2px;
    }
  }
</style>

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215423 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
I Tpartner and thanks for your answer.

I can't add the code to the source of the question. It is not considered as code but as text. (despite the fact that I pressed the source button)

Is there any special marker for it to be recognised as code?

Do you I to have special rights or make a setting somewhere?  (I don't have control over the administration).

MatthieuB
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #215424 by tpartner
Replied by tpartner on topic Changing the width of columns in an array
I can't help with that, you will need to get your administrator to disable the XSS filter or give you more permissions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215430 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
I will contact my administrator, what do I need to ask exactly?
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215431 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
I asked this: Go to Global settings --> Security and set "Filter HTML for XSS" to "Off".

I need to wait now...
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago - 2 years 10 months ago #215435 by holch
Replied by holch on topic Changing the width of columns in an array
Good luck!

But I am quite sure he/she won't. Because switching off the XSS filter will affect all users and admins of bigger installations with a lot of users usually don't like to switch the XSS filter off. And given that they are still running on 2.56.1+161118, I doubt that they are willing to invest much time in this. Because I don't think there is any good reason for not doing an update for 4,5 years despite: "I really don't want to...". ;-)

I assume you also don't have the right to modify the survey themes/templates.

So without these rights, I think you'll have to live with how the question looks like now.

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

Last edit: 2 years 10 months ago by holch.
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215438 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
You're right, I don't have the right to modify the survey themes/templates neither 

OK the XSS filter option isn't local to my survey, it's a global parameter. 

What difference does it make to others users if it is set to off? I mean for standard use?

Actually, my real need will be to change the 0 to 9 radio button lines and to replace them by a slider in each row of the array.

Is that possible with a standard use (I mean with the XSS filter) of LimeSurvey ?



 
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #215440 by tpartner
Replied by tpartner on topic Changing the width of columns in an array
You cannot insert sliders into arrays without permission to use JavaScript.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • MatthieuBRANTHOME
  • MatthieuBRANTHOME's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago #215441 by MatthieuBRANTHOME
Replied by MatthieuBRANTHOME on topic Changing the width of columns in an array
Ok thank you.

What does the XSS filter set to off change for a standard user?

I need to convince my admin that in will not infer on other user work :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose