Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
[done] Matrix (array flexible) row size and aling (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: [done] Matrix (array flexible) row size and aling
#18606
jamarin (User)
Fresh Lemon
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
[done] Matrix (array flexible) row size and aling 3 Months, 4 Weeks ago Karma: 0  
I need to format the ROWS of a matrix question (type array flexible). I want to change the size and force left alignment.

There are some partial solutions to my problem in:
docs.limesurvey.org/tiki-index.php?page=...e_question_alignment
docs.limesurvey.org/tiki-index.php?page=...ible_Labels_question
How to change the <font-size> tags using CSS


But no one of this works in my case.
After several hours hacking the code y have success doing this:

To align Left (I have not success in templates because there is hard code in quandas.php that overwrite template settings)--> solution:

(hacking the code of program) In Quanda.php. looking for function do_array_flexible (or other tipe of question you want to hack)
change align right with left in lines 3153, 3159, 3163, 3168.

To Change size (in templates, the class .array1 or 2 changes only the column headings. And the class answertext works only with other type of questions but not with matrix rows). -->Solution:
Via web access as admin of the survey, edit templates and change the class .question td from 10px to 12 (or the number you want).
 
Logged Logged  
 
Last Edit: 2008/09/11 20:21 By Mazi.
  The administrator has disabled public write access.
#18613
Mazi (Moderator)
Moderator Lime
Posts: 3503
graph
User Offline Click here to see the profile of this user
Re:Matrix (array flexible) row size and aling 3 Months, 4 Weeks ago Karma: 28  
Thanks for sharing your solution with us. Maybe you can add a few sentences to our online help to help users who have the same problem? Would be great. The manual is a wiki, everyone can edit it.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#18636
jamarin (User)
Fresh Lemon
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Matrix (array flexible) row size and aling 3 Months, 3 Weeks ago Karma: 0  
OK. I have write some lines in Workarounds (docs.limesurvey.org/tiki-index.php?page=Workarounds)

Probably it would be better to write in the section templates or in Creating Surveys adding a new heading (formating surveys). But I'm not sure if you prefer mantain all the new things in "workarounds".
 
Logged Logged  
  The administrator has disabled public write access.
#18646
Mazi (Moderator)
Moderator Lime
Posts: 3503
graph
User Offline Click here to see the profile of this user
Re:Matrix (array flexible) row size and aling 3 Months, 3 Weeks ago Karma: 28  
Thanks for your support!
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#18662
wajdai (User)
Fresh Lemon
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Matrix (array flexible) row size and aling 3 Months, 3 Weeks ago Karma: 0  
Hi,

I solved the problem of alignment in flexible array matrix type question by changing a term in the css template. Went to question screen and selected template CSS. There i deleted the word "right" from answertext.

It was

.answertextright {
text-align:left;
}

I deleted "right" so that it became

.answertext {
text-align:left;
}

It worked for me
 
Logged Logged  
  The administrator has disabled public write access.
#18663
Mazi (Moderator)
Moderator Lime
Posts: 3503
graph
User Offline Click here to see the profile of this user
Re:Matrix (array flexible) row size and aling 3 Months, 3 Weeks ago Karma: 28  
Feel free to add this to the workarounds if this doesn't already exist.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top