Welcome to the LimeSurvey Community Forum

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

How can I put text in the left top cell of an array dual scale?

  • mcovents
  • mcovents's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 3 months ago #223717 by mcovents
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.15
Own server or LimeSurvey hosting: Own sever
Theme:
Vanilla
==================
How can I put text in the left top cell of an array dual scale? I want to add a title for the subquestions. (see attachment)

Thanks in advance and best regards,
Marc.
Attachments:
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago #223720 by Joffm
So, you do not have header for the two scales?
[url] forums.limesurvey.org/forum/can-i-do-thi...able-cells-in-arrays [/url]
 

Otherwise replace
Code:
        $('table.subquestion-list thead tr:last td:first', thisQuestion).addClass('inserted-header').append(insertedText);

with
Code:
        $('table.subquestion-list thead tr th.header_answer_text', thisQuestion).addClass('inserted-header').append(insertedText);

 

​​​​​​​JOffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • mcovents
  • mcovents's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 3 months ago #223725 by mcovents
Thank you for your respons!
No, I don't have a header for the two scales.
I tried inserting your code but I don't like the extra row at the top.
Also the width of the columns is changed by this. (see attachment)
So I suppose it's not possible to place the text 'Behavioural indicators' in the empty cell left to the cell with the text "Check" (see attachment)
 
Attachments:
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago - 2 years 3 months ago #223728 by holch
As far as I understand, Joffm's first example does what you want. See his screenshot.

If you use the second example you'll have an additional line above. Have a look at the link he is referencing.

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 3 months ago by holch.
The following user(s) said Thank You: Joffm
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago #223729 by Joffm
@holch, you understood absolutely correct.

Without a header to define the scales it is just the script in the linked thread.
Here again a screenshot with text.

 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • mcovents
  • mcovents's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 3 months ago #223731 by mcovents
I understand.
It works now!
Thanks.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose